Skip to content

Commit

Permalink
CI: try to fix cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahihi committed Aug 2, 2024
1 parent c737d4e commit 86000d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
CARGO_BUILD_TARGET: ${{ matrix.target }}
CARGO_TERM_COLOR: always
MACOSX_DEPLOYMENT_TARGET: 10.12
PKG_CONFIG_SYSROOT_DIR: /

steps:
- name: checkout
Expand All @@ -72,6 +71,13 @@ jobs:
sudo tee -a /etc/apt/sources.list >/dev/null
done
- name: cache QEMU and AArch64 cross compiler
if: startsWith(matrix.target, 'aarch64-unknown-linux')
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: qemu-user gcc-aarch64-linux-gnu libc6:arm64
version: 1.0

- name: cache musl development files
if: endsWith(matrix.target, '-musl')
uses: awalsh128/cache-apt-pkgs-action@latest
Expand Down

0 comments on commit 86000d8

Please sign in to comment.