Skip to content

Commit 69030ea

Browse files
author
Brean
committed
fix: Update release workflow to install jq and improve binary handling for packaging
1 parent a612508 commit 69030ea

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
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
@@ -66,6 +71,11 @@ jobs:
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
@@ -75,9 +85,12 @@ jobs:
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/*

0 commit comments

Comments
 (0)