20
20
- name : Checkout sources
21
21
uses : actions/checkout@v3
22
22
23
+ - uses : Swatinem/rust-cache@v2
24
+
23
25
- name : Install qemu and OVMF
24
26
run : |
25
27
sudo apt-get update
36
38
- name : Checkout sources
37
39
uses : actions/checkout@v3
38
40
41
+ - uses : Swatinem/rust-cache@v2
42
+
39
43
- name : Install qemu and OVMF
40
44
run : |
41
45
sudo apt-get update
52
56
- name : Checkout sources
53
57
uses : actions/checkout@v3
54
58
59
+ - uses : Swatinem/rust-cache@v2
60
+
55
61
- name : Install qemu and OVMF
56
62
run : |
57
63
sudo apt-get update
68
74
- name : Checkout sources
69
75
uses : actions/checkout@v3
70
76
77
+ - uses : Swatinem/rust-cache@v2
78
+
71
79
- name : Run cargo test (without unstable)
72
80
run : cargo xtask test
73
81
78
86
- name : Checkout sources
79
87
uses : actions/checkout@v3
80
88
89
+ - uses : Swatinem/rust-cache@v2
90
+
81
91
- name : Run cargo fmt
82
92
run : |
83
93
rustup component add rustfmt
@@ -111,6 +121,8 @@ jobs:
111
121
- name : Set MSRV toolchain
112
122
run : cp .github/workflows/msrv_toolchain.toml rust-toolchain.toml
113
123
124
+ - uses : Swatinem/rust-cache@v2
125
+
114
126
- name : Build
115
127
run : cargo xtask test-latest-release
116
128
@@ -124,6 +136,8 @@ jobs:
124
136
- name : Checkout sources
125
137
uses : actions/checkout@v3
126
138
139
+ - uses : Swatinem/rust-cache@v2
140
+
127
141
- name : Run VM tests
128
142
run : cargo xtask run --target x86_64 --ci
129
143
timeout-minutes : 6
@@ -143,6 +157,8 @@ jobs:
143
157
- name : Set toolchain
144
158
run : cp .github/workflows/msrv_toolchain.toml rust-toolchain.toml
145
159
160
+ - uses : Swatinem/rust-cache@v2
161
+
146
162
- name : Build
147
163
run : cargo xtask build
148
164
@@ -158,6 +174,8 @@ jobs:
158
174
- name : Set nightly toolchain so that `unstable` can be included
159
175
run : cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
160
176
177
+ - uses : Swatinem/rust-cache@v2
178
+
161
179
- name : Build
162
180
run : cargo xtask build --feature-permutations
163
181
@@ -176,6 +194,8 @@ jobs:
176
194
- name : Enable nightly toolchain
177
195
run : cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
178
196
197
+ - uses : Swatinem/rust-cache@v2
198
+
179
199
- name : Run VM tests with the `unstable` feature
180
200
run : cargo xtask run --target x86_64 --headless --ci --unstable
181
201
timeout-minutes : 4
0 commit comments