Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ jobs:
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-i386

- name: Install AArch64 Toolchain (Windows)
if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
run: rustup target add aarch64-pc-windows-msvc

- name: Install ARM Toolchain
if: >-
${{
Expand All @@ -94,9 +98,9 @@ jobs:
run: |
sudo apt-get install gcc-arm-linux-gnueabihf

- name: Install AArch64 Toolchain (Windows)
if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
run: rustup target add aarch64-pc-windows-msvc
- name: Install musl Toolchain
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
run: sudo apt-get install musl-tools

- name: Package
id: package
Expand Down
11 changes: 8 additions & 3 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ echo "Installing rust toolchain for $TARGET..."
rustup target add $TARGET

echo "Building filepack..."
if [[ $TARGET == aarch64-unknown-linux-musl ]]; then
export CC=aarch64-linux-gnu-gcc
fi
case $TARGET in
aarch64-unknown-linux-musl)
export CC=aarch64-linux-gnu-gcc
;;
arm-unknown-linux-musleabihf | armv7-unknown-linux-musleabihf)
export CC=arm-linux-gnueabihf-gcc
;;
esac
RUSTFLAGS="--deny warnings --codegen target-feature=+crt-static $TARGET_RUSTFLAGS" \
cargo build --bin filepack --target $TARGET --release
export -n CC
Expand Down