Skip to content

Commit

Permalink
Remove dependency on archived actions-rs steps
Browse files Browse the repository at this point in the history
Also confirm that we can build for aarch64-linux-android, thanks to new
support in libc and linux-futex.
  • Loading branch information
rtzoeller committed Jun 12, 2024
1 parent d46ea9b commit b0ce58b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
38 changes: 13 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b0ce58b

Please sign in to comment.