@@ -19,20 +19,27 @@ jobs:
19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
21
21
matrix :
22
- target :
23
- - x86_64-unknown-linux-gnu
24
- - aarch64-apple-darwin
25
- - x86_64-pc- windows-msvc
26
- toolchain :
27
- - 1.67.0 # MSRV
22
+ os-alias :
23
+ - ubuntu
24
+ - macos
25
+ - windows
26
+ toolchain-alias :
27
+ - msrv
28
28
- stable
29
29
include :
30
- - target : x86_64-unknown-linux-gnu
30
+ - os-alias : ubuntu
31
31
os : ubuntu-24.04
32
- - target : aarch64-apple-darwin
32
+ target : x86_64-unknown-linux-gnu
33
+ - os-alias : macos
33
34
os : macos-14
34
- - target : x86_64-pc-windows-msvc
35
+ target : aarch64-apple-darwin
36
+ - os-alias : windows
35
37
os : windows-2022
38
+ target : x86_64-pc-windows-msvc
39
+ - toolchain-alias : msrv
40
+ toolchain : 1.85.0
41
+ - toolchain-alias : stable
42
+ toolchain : stable
36
43
steps :
37
44
- name : Checkout code
38
45
uses : actions/checkout@v4
42
49
toolchain : ${{ matrix.toolchain }}
43
50
targets : ${{ matrix.target }}
44
51
- name : Cache build artifacts
45
- uses :
Swatinem/[email protected] .5
52
+ uses :
Swatinem/[email protected] .7
46
53
with :
47
54
key : ${{ matrix.target }}
48
55
- name : Check a package
@@ -53,20 +60,27 @@ jobs:
53
60
runs-on : ${{ matrix.os }}
54
61
strategy :
55
62
matrix :
56
- target :
57
- - x86_64-unknown-linux-gnu
58
- - aarch64-apple-darwin
59
- - x86_64-pc- windows-msvc
60
- toolchain :
61
- - 1.67.0
63
+ os-alias :
64
+ - ubuntu
65
+ - macos
66
+ - windows
67
+ toolchain-alias :
68
+ - msrv
62
69
- stable
63
70
include :
64
- - target : x86_64-unknown-linux-gnu
71
+ - os-alias : ubuntu
65
72
os : ubuntu-24.04
66
- - target : aarch64-apple-darwin
73
+ target : x86_64-unknown-linux-gnu
74
+ - os-alias : macos
67
75
os : macos-14
68
- - target : x86_64-pc-windows-msvc
76
+ target : aarch64-apple-darwin
77
+ - os-alias : windows
69
78
os : windows-2022
79
+ target : x86_64-pc-windows-msvc
80
+ - toolchain-alias : msrv
81
+ toolchain : 1.85.0
82
+ - toolchain-alias : stable
83
+ toolchain : stable
70
84
steps :
71
85
- name : Checkout code
72
86
uses : actions/checkout@v4
76
90
toolchain : ${{ matrix.toolchain }}
77
91
targets : ${{ matrix.target }}
78
92
- name : Cache build artifacts
79
- uses :
Swatinem/[email protected] .5
93
+ uses :
Swatinem/[email protected] .7
80
94
with :
81
95
key : ${{ matrix.target }}
82
96
- name : Run tests
94
108
toolchain : stable
95
109
components : rustfmt
96
110
- name : Cache build artifacts
97
- uses :
Swatinem/[email protected] .5
111
+ uses :
Swatinem/[email protected] .7
98
112
- name : Check code formatted
99
113
run : cargo fmt -- --check
100
114
@@ -110,7 +124,7 @@ jobs:
110
124
toolchain : stable
111
125
components : clippy
112
126
- name : Cache build artifacts
113
- uses :
Swatinem/[email protected] .5
127
+ uses :
Swatinem/[email protected] .7
114
128
- name : Check no lint warnings
115
129
run : cargo clippy -- -D warnings
116
130
@@ -125,7 +139,7 @@ jobs:
125
139
with :
126
140
toolchain : stable
127
141
- name : Cache build artifacts
128
- uses :
Swatinem/[email protected] .5
142
+ uses :
Swatinem/[email protected] .7
129
143
- name : Check no `rustdoc` lint warnings
130
144
run : RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items
131
145
@@ -140,6 +154,6 @@ jobs:
140
154
with :
141
155
toolchain : nightly
142
156
- name : Cache build artifacts
143
- uses :
Swatinem/[email protected] .5
157
+ uses :
Swatinem/[email protected] .7
144
158
- name : Run benchmarks
145
159
run : cargo bench
0 commit comments