Skip to content

Commit

Permalink
Install compiler (#24)
Browse files Browse the repository at this point in the history
Runner is missing cross compilers for building c libs on aarch64
  • Loading branch information
pat-trunk-io authored Jun 8, 2023
1 parent f9ba42e commit 57d5be3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ jobs:
- uses: dtolnay/rust-toolchain@stable

- name: Set up toolchains
run: rustup target add ${{ matrix.target }}
run: |
rustup target add ${{ matrix.target }}
if [[ ${{ matrix.target }} == "aarch64-unknown-linux-gnu" ]]; then
sudo apt install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu;
fi
- name: Build --release
run: cargo build --release --target ${{ matrix.target }}
Expand Down

0 comments on commit 57d5be3

Please sign in to comment.