File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
workflow_dispatch :
7
- # used when called manually.
8
- workflow_call :
9
- # used when called by _another_ workflow (not when called on this repo!)
10
7
11
8
jobs :
12
9
test :
13
10
runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ rust-toolchain :
14
+ - " 1.81" # minimum for this crate
15
+ - " stable"
16
+ - " nightly"
14
17
steps :
15
- - uses : actions/checkout@v4 # not pinning to commit since this is a GitHub action, which we trust
18
+ - uses : actions/checkout@v4 # not pinning to commit hash since this is a GitHub action, which we trust
16
19
- id : cache-cargo
17
20
name : Cache Cargo toolchain
18
- uses : actions/cache@v4 # not pinning to commit since this is a GitHub action, which we trust
21
+ uses : actions/cache@v4 # not pinning to commit hash since this is a GitHub action, which we trust
19
22
with :
20
23
path : |
21
24
~/.cargo/bin/
@@ -26,10 +29,10 @@ jobs:
26
29
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-release
27
30
- if : ${{ steps.cache-cargo.outputs.cache-hit != 'true' }}
28
31
name : Install Rust toolchain
29
- uses : actions-rs/toolchain@v1 # not pinning to commit since this is an archived GitHub action, which we trust
32
+ uses : actions-rs/toolchain@v1 # not pinning to commit hash since this is an archived GitHub action, which we trust
30
33
with :
31
34
profile : minimal
32
- toolchain : stable
35
+ toolchain : ${{ matrix.rust-toolchain }}
33
36
override : true
34
37
- name : Architecture check
35
38
run : cargo run arch-check
You can’t perform that action at this time.
0 commit comments