diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..f77bece --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,3 @@ +[target."aarch64-unknown-linux-gnu"] +linker = "aarch64-linux-gnu-gcc" + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f432bd..32d108c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,6 +60,35 @@ jobs: - run: cargo bench --no-run - run: make -C contrib/selinux + build_aarch64: + runs-on: ubuntu-latest + container: debian:bullseye + steps: + - uses: actions/checkout@v2 + - name: Install dependency + run: | + dpkg --add-architecture arm64 + apt-get -qq update + apt-get -qqy dist-upgrade + apt-get -qqy install curl build-essential libclang-dev gcc-aarch64-linux-gnu libacl1-dev:arm64 + + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: aarch64-unknown-linux-gnu + + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}" + + - run: cargo build --target=aarch64-unknown-linux-gnu + build_static_musl: runs-on: ubuntu-latest container: alpine:3.18