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 2be02fb commit a9a2603
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,14 @@ jobs:
run: rustup target add aarch64-unknown-linux-gnu

- name: Install AArch64 Linux toolchain and dependencies
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cmake
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu build-essential libc6-dev-arm64-cross

- name: Set linker for AArch64 target
run: echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV

- name: Build project for AArch64 Linux
run: |
export RUSTFLAGS="-L /usr/aarch64-linux-gnu/lib"
cargo build --release --target aarch64-unknown-linux-gnu
- name: Copy model folder for AArch64 Linux
Expand Down Expand Up @@ -196,10 +200,14 @@ jobs:
run: rustup target add aarch64-unknown-linux-gnu

- name: Install AArch64 Linux toolchain and dependencies
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cmake
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu build-essential libc6-dev-arm64-cross

- name: Set linker for AArch64 target
run: echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV

- name: Build project for AArch64 Linux
run: |
export RUSTFLAGS="-L /usr/aarch64-linux-gnu/lib"
cargo build --release --target aarch64-unknown-linux-gnu --features "inline-model"
- name: Archive artifacts for AArch64 Linux with inline-model
Expand Down

0 comments on commit a9a2603

Please sign in to comment.