Skip to content

Commit 47f550a

Browse files
committed
iox-#75 Update CI to use latest actions
1 parent ac4aa9d commit 47f550a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/actions/build-and-cache-rust-tool/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
cat version_info
3939
shell: bash
4040
- name: Setup cache
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: |
4444
~/.cargo/bin/
@@ -54,7 +54,7 @@ runs:
5454
run: ${{ inputs.print-version-cmd }}
5555
shell: bash
5656
- name: Upload artifact
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: ${{ inputs.artifact-name }}
6060
path: ${{ inputs.artifact-path }}

.github/workflows/rust.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
- name: Setup Rust
1919
uses: dtolnay/rust-toolchain@v1
2020
with:
@@ -30,7 +30,7 @@ jobs:
3030
os: [ubuntu-latest, macOS-latest] #Todo add windows-latest
3131
runs-on: ${{ matrix.os }}
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- name: Build and cache cargo-nextest
3535
uses: ./.github/actions/build-and-cache-rust-tool
3636
with:
@@ -45,7 +45,7 @@ jobs:
4545
needs: pre-flight-check
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
- name: Build and cache grcov
5050
uses: ./.github/actions/build-and-cache-rust-tool
5151
with:
@@ -71,7 +71,7 @@ jobs:
7171
continue-on-error: ${{ matrix.toolchain != 'stable' }}
7272

7373
steps:
74-
- uses: actions/checkout@v3
74+
- uses: actions/checkout@v4
7575
- name: Setup Rust
7676
uses: dtolnay/rust-toolchain@v1
7777
with:
@@ -84,7 +84,7 @@ jobs:
8484
cargo clippy --version >> version_info
8585
cat version_info
8686
- name: Setup cache
87-
uses: actions/cache@v3
87+
uses: actions/cache@v4
8888
with:
8989
path: |
9090
~/.cargo/bin/
@@ -94,7 +94,7 @@ jobs:
9494
target/
9595
key: cache-1-${{ runner.os }}-toolchain-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml', '**/build.rs', 'version_info') }}
9696
- name: Download cargo-nextest artifact
97-
uses: actions/download-artifact@v3
97+
uses: actions/download-artifact@v4
9898
with:
9999
name: ${{ runner.os }}-cargo-nextest
100100
path: ~/.cargo/bin
@@ -119,7 +119,7 @@ jobs:
119119
needs: [cargo-nextest, grcov]
120120
runs-on: ubuntu-latest
121121
steps:
122-
- uses: actions/checkout@v3
122+
- uses: actions/checkout@v4
123123
- name: Setup Rust
124124
uses: dtolnay/rust-toolchain@v1
125125
with:
@@ -131,7 +131,7 @@ jobs:
131131
cargo --version >> version_info
132132
cat version_info
133133
- name: Setup cache
134-
uses: actions/cache@v3
134+
uses: actions/cache@v4
135135
with:
136136
path: |
137137
~/.cargo/bin/
@@ -146,12 +146,12 @@ jobs:
146146
find . -type f -wholename "**/*.profraw" -exec rm {} \;
147147
rm -rf target/debug/coverage-html
148148
- name: Download artifact cargo-nextest
149-
uses: actions/download-artifact@v3
149+
uses: actions/download-artifact@v4
150150
with:
151151
name: ${{ runner.os }}-cargo-nextest
152152
path: ~/.cargo/bin
153153
- name: Download artifact grcov
154-
uses: actions/download-artifact@v3
154+
uses: actions/download-artifact@v4
155155
with:
156156
name: ${{ runner.os }}-grcov
157157
path: ~/.cargo/bin
@@ -191,7 +191,7 @@ jobs:
191191
--output-path target/debug/coverage-html
192192
sed -i 's/coverage/grcov/' target/debug/coverage-html/coverage.json
193193
- name: Archive coverage-html artifacts
194-
uses: actions/upload-artifact@v3
194+
uses: actions/upload-artifact@v4
195195
with:
196196
name: coverage-html
197197
path: target/debug/coverage-html/*

0 commit comments

Comments
 (0)