Skip to content

Commit

Permalink
iox-#75 Update CI to use latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Apr 22, 2024
1 parent ac4aa9d commit 47f550a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-and-cache-rust-tool/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
cat version_info
shell: bash
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -54,7 +54,7 @@ runs:
run: ${{ inputs.print-version-cmd }}
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
Expand All @@ -30,7 +30,7 @@ jobs:
os: [ubuntu-latest, macOS-latest] #Todo add windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build and cache cargo-nextest
uses: ./.github/actions/build-and-cache-rust-tool
with:
Expand All @@ -45,7 +45,7 @@ jobs:
needs: pre-flight-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build and cache grcov
uses: ./.github/actions/build-and-cache-rust-tool
with:
Expand All @@ -71,7 +71,7 @@ jobs:
continue-on-error: ${{ matrix.toolchain != 'stable' }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
Expand All @@ -84,7 +84,7 @@ jobs:
cargo clippy --version >> version_info
cat version_info
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -94,7 +94,7 @@ jobs:
target/
key: cache-1-${{ runner.os }}-toolchain-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml', '**/build.rs', 'version_info') }}
- name: Download cargo-nextest artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-cargo-nextest
path: ~/.cargo/bin
Expand All @@ -119,7 +119,7 @@ jobs:
needs: [cargo-nextest, grcov]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
Expand All @@ -131,7 +131,7 @@ jobs:
cargo --version >> version_info
cat version_info
- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -146,12 +146,12 @@ jobs:
find . -type f -wholename "**/*.profraw" -exec rm {} \;
rm -rf target/debug/coverage-html
- name: Download artifact cargo-nextest
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-cargo-nextest
path: ~/.cargo/bin
- name: Download artifact grcov
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-grcov
path: ~/.cargo/bin
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
--output-path target/debug/coverage-html
sed -i 's/coverage/grcov/' target/debug/coverage-html/coverage.json
- name: Archive coverage-html artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: target/debug/coverage-html/*
Expand Down

0 comments on commit 47f550a

Please sign in to comment.