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 85bea45
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,25 @@ 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 }}

- 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

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo +${{ matrix.rust }} test

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo +${{ matrix.rust }} fmt --all --check

- run: cargo +${{ matrix.rust }} clippy -- -D warnings

semver:
name: Check semver (must manually inspect)
Expand Down

0 comments on commit 85bea45

Please sign in to comment.