Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
86maid authored Jul 9, 2024
1 parent 8696b4c commit db0a277
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu

- name: Build project for AArch64 Linux
run: CC=aarch64-linux-gnu-gcc cargo build --release --target aarch64-unknown-linux-gnu
run: |
export TARGET_CC=aarch64-linux-gnu-gcc
cargo build --release --target aarch64-unknown-linux-gnu
- name: Copy model folder for AArch64 Linux
run: |
Expand All @@ -187,8 +189,10 @@ jobs:
- name: Install AArch64 Linux toolchain
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu

- name: Build project for AArch64 Linux
run: CC=aarch64-linux-gnu-gcc cargo build --release --target aarch64-unknown-linux-gnu --features "inline-model"
- name: Build project for AArch64 Linux with inline-model feature
run: |
export RUSTFLAGS="-C target-feature=-crt-static"
cargo build --release --target aarch64-unknown-linux-gnu --features "inline-model"
- name: Archive artifacts for AArch64 Linux with inline-model
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit db0a277

Please sign in to comment.