File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 toolchain : stable
2525 override : true
2626
27+ - name : Install dependencies
28+ run : |
29+ sudo apt-get update
30+ sudo apt-get install -y jq
31+
2732 - name : Add build targets
2833 run : |
2934 rustup target add x86_64-unknown-linux-gnu
6671
6772 # aarch64 static binary
6873 cargo zigbuild --release --target aarch64-unknown-linux-musl
74+
75+ # List built binaries for debugging
76+ find target/ -name "*" -type f -executable
77+ ls -la target/x86_64-unknown-linux-musl/release/
78+ ls -la target/aarch64-unknown-linux-musl/release/
6979
7080 # Create directories for packaging
7181 - name : Prepare packaging directories
7585 mkdir -p dist/deb/usr/bin
7686 mkdir -p dist/rpm
7787
88+ # Replace 'your-actual-binary-name' with the actual binary name
89+ BINARY_NAME="node-cleaner"
90+
7891 # Copy binaries
79- cp target/x86_64-unknown-linux-musl/release/rust-cli dist/bin/rust-cli -x86_64-linux
80- cp target/aarch64-unknown-linux-musl/release/rust-cli dist/bin/rust-cli -aarch64-linux
92+ cp target/x86_64-unknown-linux-musl/release/$BINARY_NAME dist/bin/$BINARY_NAME -x86_64-linux
93+ cp target/aarch64-unknown-linux-musl/release/$BINARY_NAME dist/bin/$BINARY_NAME -aarch64-linux
8194
8295 # Make binaries executable
8396 chmod +x dist/bin/*
You can’t perform that action at this time.
0 commit comments