Skip to content

Commit

Permalink
ci: fix cross-compilation strip for debian packages
Browse files Browse the repository at this point in the history
- Add proper cargo config setup for cross strip
- Copy cargo config to .cargo/config.toml
- Remove incorrect CARGO_CONFIG env var
  • Loading branch information
aljen committed Dec 1, 2024
1 parent a7c41ef commit 52e2658
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ jobs:
PKG_CONFIG_LIBDIR="$PKG_PATH" \
cross build --release --target ${{ matrix.target }}
# Setup cargo config for cross-compilation strip
mkdir -p .cargo
cp dist/debian/cargo-config.toml .cargo/config.toml
LD_LIBRARY_PATH="$LD_PATH" \
CARGO_CONFIG="dist/debian/cargo-config.toml" \
cargo deb --no-build --target ${{ matrix.target }}
fi
Expand Down

0 comments on commit 52e2658

Please sign in to comment.