14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
- name : Setup Rust
19
19
uses : dtolnay/rust-toolchain@v1
20
20
with :
30
30
os : [ubuntu-latest, macOS-latest] # Todo add windows-latest
31
31
runs-on : ${{ matrix.os }}
32
32
steps :
33
- - uses : actions/checkout@v3
33
+ - uses : actions/checkout@v4
34
34
- name : Build and cache cargo-nextest
35
35
uses : ./.github/actions/build-and-cache-rust-tool
36
36
with :
45
45
needs : pre-flight-check
46
46
runs-on : ubuntu-latest
47
47
steps :
48
- - uses : actions/checkout@v3
48
+ - uses : actions/checkout@v4
49
49
- name : Build and cache grcov
50
50
uses : ./.github/actions/build-and-cache-rust-tool
51
51
with :
71
71
continue-on-error : ${{ matrix.toolchain != 'stable' }}
72
72
73
73
steps :
74
- - uses : actions/checkout@v3
74
+ - uses : actions/checkout@v4
75
75
- name : Setup Rust
76
76
uses : dtolnay/rust-toolchain@v1
77
77
with :
84
84
cargo clippy --version >> version_info
85
85
cat version_info
86
86
- name : Setup cache
87
- uses : actions/cache@v3
87
+ uses : actions/cache@v4
88
88
with :
89
89
path : |
90
90
~/.cargo/bin/
94
94
target/
95
95
key : cache-1-${{ runner.os }}-toolchain-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml', '**/build.rs', 'version_info') }}
96
96
- name : Download cargo-nextest artifact
97
- uses : actions/download-artifact@v3
97
+ uses : actions/download-artifact@v4
98
98
with :
99
99
name : ${{ runner.os }}-cargo-nextest
100
100
path : ~/.cargo/bin
@@ -119,7 +119,7 @@ jobs:
119
119
needs : [cargo-nextest, grcov]
120
120
runs-on : ubuntu-latest
121
121
steps :
122
- - uses : actions/checkout@v3
122
+ - uses : actions/checkout@v4
123
123
- name : Setup Rust
124
124
uses : dtolnay/rust-toolchain@v1
125
125
with :
@@ -131,7 +131,7 @@ jobs:
131
131
cargo --version >> version_info
132
132
cat version_info
133
133
- name : Setup cache
134
- uses : actions/cache@v3
134
+ uses : actions/cache@v4
135
135
with :
136
136
path : |
137
137
~/.cargo/bin/
@@ -146,12 +146,12 @@ jobs:
146
146
find . -type f -wholename "**/*.profraw" -exec rm {} \;
147
147
rm -rf target/debug/coverage-html
148
148
- name : Download artifact cargo-nextest
149
- uses : actions/download-artifact@v3
149
+ uses : actions/download-artifact@v4
150
150
with :
151
151
name : ${{ runner.os }}-cargo-nextest
152
152
path : ~/.cargo/bin
153
153
- name : Download artifact grcov
154
- uses : actions/download-artifact@v3
154
+ uses : actions/download-artifact@v4
155
155
with :
156
156
name : ${{ runner.os }}-grcov
157
157
path : ~/.cargo/bin
@@ -191,7 +191,7 @@ jobs:
191
191
--output-path target/debug/coverage-html
192
192
sed -i 's/coverage/grcov/' target/debug/coverage-html/coverage.json
193
193
- name : Archive coverage-html artifacts
194
- uses : actions/upload-artifact@v3
194
+ uses : actions/upload-artifact@v4
195
195
with :
196
196
name : coverage-html
197
197
path : target/debug/coverage-html/*
0 commit comments