Skip to content

Commit a1d8a7d

Browse files
committed
ci: don't use the unmaintained actions-rs actions
Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
1 parent af7f1e4 commit a1d8a7d

2 files changed

Lines changed: 12 additions & 28 deletions

File tree

.github/workflows/lint.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,17 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
- uses: actions-rs/toolchain@v1
10-
with:
11-
components: rustfmt
12-
toolchain: nightly
13-
profile: minimal
14-
override: true
15-
- uses: actions-rs/cargo@v1
16-
with:
17-
command: fmt
18-
args: --all -- --check
9+
- name: Setup Rust toolchain
10+
run: rustup show && rustup update && rustup component add rustfmt
11+
- name: cargo fmt
12+
run: cargo fmt --all -- --check
1913

2014
clippy:
2115
name: cargo clippy
2216
runs-on: ubuntu-latest
2317
steps:
2418
- uses: actions/checkout@v4
25-
- uses: actions-rs/toolchain@v1
26-
with:
27-
components: clippy
28-
toolchain: nightly
29-
profile: minimal
30-
override: true
31-
- uses: actions-rs/cargo@v1
32-
with:
33-
command: clippy
34-
args: -- -D warnings
19+
- name: Setup Rust toolchain
20+
run: rustup show && rustup update && rustup component add clippy
21+
- name: cargo clippy
22+
run: cargo clippy --all-features --tests -- -D warnings

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
- uses: actions-rs/toolchain@v1
10-
with:
11-
toolchain: ${{ matrix.toolchain }}
12-
override: true
13-
- uses: actions-rs/cargo@v1
14-
with:
15-
command: test
16-
args: ${{ matrix.profile.flag }}
9+
- name: Install Rust
10+
run: rustup toolchain install ${{ matrix.toolchain }}
11+
- name: cargo test
12+
run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
1713
strategy:
1814
fail-fast: false
1915
matrix:

0 commit comments

Comments
 (0)