Skip to content

Commit

Permalink
Remove dependency on archived actions-rs steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rtzoeller committed Jun 11, 2024
1 parent d46ea9b commit d83ff52
Showing 1 changed file with 13 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

0 comments on commit d83ff52

Please sign in to comment.