Skip to content

Commit 64a4be6

Browse files
chore(ci): update some github action dependencies (#873)
1 parent f862ef1 commit 64a4be6

File tree

4 files changed

+17
-59
lines changed

4 files changed

+17
-59
lines changed

.github/workflows/coverage.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ jobs:
2727
with:
2828
persist-credentials: false
2929

30-
- uses: actions-rs/toolchain@v1.0.7
30+
- uses: dtolnay/rust-toolchain@stable
3131
with:
32-
toolchain: stable
33-
override: true
34-
profile: minimal
35-
components: llvm-tools-preview
32+
components: llvm-tools
3633

3734
- name: Install cargo-llvm-cov cargo command
3835
run: cargo install cargo-llvm-cov

.github/workflows/docs.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ jobs:
4141
persist-credentials: false
4242

4343
- name: Install latest beta
44-
uses: actions-rs/toolchain@v1
45-
with:
46-
toolchain: beta
47-
components: rust-docs
48-
override: true
44+
uses: dtolnay/rust-toolchain@beta
4945

5046
- uses: Swatinem/rust-cache@v2
5147

.github/workflows/main.yml

+13-48
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,14 @@ on:
99
- main
1010

1111
jobs:
12-
1312
build_default:
1413
name: build with default features
1514
runs-on: ubuntu-latest
1615

1716
steps:
1817
- uses: actions/[email protected]
19-
- uses: actions-rs/[email protected]
20-
with:
21-
toolchain: beta
22-
override: true
23-
- uses: actions-rs/[email protected]
24-
with:
25-
command: build
18+
- uses: dtolnay/rust-toolchain@beta
19+
- run: cargo build
2620

2721
build_msrv:
2822
name: build with MSRV (1.66.1)
@@ -85,14 +79,8 @@ jobs:
8579

8680
steps:
8781
- uses: actions/[email protected]
88-
- uses: actions-rs/[email protected]
89-
with:
90-
toolchain: beta
91-
override: true
92-
- uses: actions-rs/[email protected]
93-
with:
94-
command: test
95-
args: --release --all-features
82+
- uses: dtolnay/rust-toolchain@beta
83+
- run: cargo test --release --all-features
9684

9785
clippy:
9886
name: Clippy
@@ -103,10 +91,7 @@ jobs:
10391
with:
10492
persist-credentials: false
10593

106-
- uses: actions-rs/[email protected]
107-
with:
108-
toolchain: stable
109-
override: true
94+
- uses: dtolnay/rust-toolchain@stable
11095

11196
- name: Check workflow permissions
11297
id: check_permissions
@@ -117,12 +102,9 @@ jobs:
117102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118103

119104
- name: Run clippy action to produce annotations
120-
uses: actions-rs/clippy-check@v1.0.7
105+
uses: clechasseur/rs-clippy-check@v4
121106
if: ${{ steps.check_permissions.outputs.has-permission }}
122107
with:
123-
# GitHub displays the clippy job and its results as separate entries
124-
name: Clippy (stable) Results
125-
token: ${{ secrets.GITHUB_TOKEN }}
126108
args: --all-features --all-targets -- -D warnings
127109

128110
- name: Run clippy manually without annotations
@@ -138,18 +120,13 @@ jobs:
138120
with:
139121
persist-credentials: false
140122

141-
- uses: actions-rs/toolchain@v1.0.7
123+
- uses: dtolnay/rust-toolchain@stable
142124
with:
143-
toolchain: stable
144125
components: rustfmt
145-
override: true
146126

147127
- uses: Swatinem/rust-cache@v2
148128

149-
- uses: actions-rs/[email protected]
150-
with:
151-
command: fmt
152-
args: --all -- --check
129+
- run: cargo fmt --all -- --check
153130

154131
gencode:
155132
name: Check if automatically generated code is up to date
@@ -160,18 +137,13 @@ jobs:
160137
with:
161138
persist-credentials: false
162139

163-
- uses: actions-rs/toolchain@v1.0.7
140+
- uses: dtolnay/rust-toolchain@stable
164141
with:
165-
toolchain: stable
166142
components: rustfmt
167-
override: true
168143

169144
- uses: Swatinem/rust-cache@v2
170145

171-
- uses: actions-rs/[email protected]
172-
with:
173-
command: run
174-
args: --bin gencode -- --check
146+
- run: cargo run --bin gencode -- --check
175147

176148
docs:
177149
name: Check Rust doc
@@ -184,16 +156,9 @@ jobs:
184156
with:
185157
persist-credentials: false
186158

187-
- uses: actions-rs/[email protected]
188-
with:
189-
toolchain: stable
190-
profile: minimal
191-
override: true
159+
- uses: dtolnay/rust-toolchain@stable
192160

193-
- uses: actions-rs/[email protected]
194-
with:
195-
command: doc
196-
args: --no-deps --document-private-items --all-features
161+
- run: cargo doc --no-deps --document-private-items --all-features
197162

198163
actionlint:
199164
runs-on: ubuntu-latest
@@ -203,4 +168,4 @@ jobs:
203168
- uses: reviewdog/[email protected]
204169
with:
205170
level: warning
206-
fail_on_error: false
171+
fail_level: none

book/src/dev/developer-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
Test coverage checks are performed in the pipeline. This is configured here: `.github/workflows/coverage.yaml`
1212
To run these locally:
1313
1. Install coverage tool by running `cargo install cargo-llvm-cov`
14-
2. Run `cargo llvm-cov --ignore-filename-regex '.*(tests).*|benches.rs|gencode|helpers.rs'` (you may be asked if you want to install `llvm-tools-preview`, if so type `Y`)
14+
2. Run `cargo llvm-cov --ignore-filename-regex '.*(tests).*|benches.rs|gencode|helpers.rs'` (you may be asked if you want to install `llvm-tools`, if so type `Y`)

0 commit comments

Comments
 (0)