From b0ce58beb7ce19b3a1ac3eccb4bb2b9dd11c2ca2 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Mon, 10 Jun 2024 22:24:51 -0500 Subject: [PATCH] Remove dependency on archived actions-rs steps Also confirm that we can build for aarch64-linux-android, thanks to new support in libc and linux-futex. --- .github/workflows/rust.yml | 38 +++++++++++++------------------------- CHANGELOG.md | 1 + 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c24f088..5f9aa09 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,40 +13,28 @@ jobs: - beta - nightly - 1.69.0 # MSRV + target: + - aarch64-linux-android + - x86_64-unknown-linux-gnu steps: - name: Checkout repo uses: actions/checkout@v2 - - name: Setup rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - components: rustfmt, clippy + - run: rustup toolchain add --profile=minimal ${{ matrix.rust }} --component clippy --component rustfmt - - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build + - run: rustup target add --toolchain=${{ matrix.rust }} ${{ matrix.target }} - - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test + - run: cargo +${{ matrix.rust }} build --target=${{ matrix.target }} - - name: cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - if: matrix.target == 'x86_64-unknown-linux-gnu' + run: cargo +${{ matrix.rust }} test - - name: cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - if: matrix.target == 'x86_64-unknown-linux-gnu' + run: cargo +${{ matrix.rust }} fmt --all --check + + - if: matrix.target == 'x86_64-unknown-linux-gnu' + run: cargo +${{ matrix.rust }} clippy -- -D warnings semver: name: Check semver (must manually inspect) diff --git a/CHANGELOG.md b/CHANGELOG.md index db8c4f5..cf70fe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Updated `libc` dependency to 0.2.155. - Updated `linux-futex` dependency to 1.0.0. - Updated `lock_api` dependency to 0.4.12. +- Add support for `aarch64-linux-android`. ## [0.3.0] - 2023-11-26