Skip to content

Commit 88a871a

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

File tree

3 files changed

+23
-41
lines changed

3 files changed

+23
-41
lines changed

.github/dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/lint.yml

+11-25
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,33 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
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
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@v2
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: --all-features -- -D warnings
19+
- name: Setup Rust toolchain
20+
run: rustup show && rustup update
21+
- name: cargo clippy
22+
run: cargo clippy --workspace --all-features --tests -- -D warnings
3523

3624
readme:
3725
name: cargo readme
3826
runs-on: ubuntu-latest
3927
steps:
4028
- uses: actions/checkout@v2
41-
- uses: actions-rs/toolchain@v1
42-
with:
43-
toolchain: nightly
44-
profile: minimal
45-
override: true
29+
- name: Setup Rust toolchain
30+
run: rustup show && rustup update
4631
- run: cargo install cargo-readme
4732
- run: cargo readme > README.md && git diff --exit-code
4833

4934
check-spdx-headers:
35+
name: spdx check
5036
runs-on: ubuntu-latest
5137
steps:
5238
- name: checkout

.github/workflows/test.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
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 }} --features=${{ matrix.features }}
9+
- name: Install Rust
10+
run: rustup toolchain install ${{ matrix.toolchain }}
11+
- name: cargo test
12+
run: cargo +${{ matrix.toolchain }} test --features=${{ matrix.features }} ${{ matrix.profile.flag }}
1713
strategy:
1814
fail-fast: false
1915
matrix:
@@ -47,14 +43,10 @@ jobs:
4743
runs-on: [self-hosted, linux, sgx1]
4844
steps:
4945
- uses: actions/checkout@v2
50-
- uses: actions-rs/toolchain@v1
51-
with:
52-
toolchain: ${{ matrix.toolchain }}
53-
override: true
54-
- uses: actions-rs/cargo@v1
55-
with:
56-
command: test
57-
args: ${{ matrix.profile.flag }} --all-features
46+
- name: Install Rust
47+
run: rustup toolchain install ${{ matrix.toolchain }}
48+
- name: cargo test
49+
run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
5850
strategy:
5951
fail-fast: false
6052
matrix:

0 commit comments

Comments
 (0)