Skip to content

Commit

Permalink
ci: bump deprecated actions to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 authored and philipc committed Sep 28, 2024
1 parent 19a9606 commit 3e6ff1d
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
os: macOS-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -42,7 +42,7 @@ jobs:
msrv-read:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust
uses: dtolnay/[email protected]
- name: Build
Expand All @@ -53,7 +53,7 @@ jobs:
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust
uses: dtolnay/[email protected]
- name: Build
Expand All @@ -65,20 +65,18 @@ jobs:
name: Build fuzz targets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install `cargo fuzz`
run: cargo install cargo-fuzz --vers '^0.11.0'
- run: cargo fuzz build -Oa
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: fuzz-targets
path: fuzz/target/x86_64-unknown-linux-gnu/release/debug_*
- uses: actions/upload-artifact@v3
with:
name: fuzz-targets
path: fuzz/target/x86_64-unknown-linux-gnu/release/eh_*
path: |
fuzz/target/x86_64-unknown-linux-gnu/release/debug_*
fuzz/target/x86_64-unknown-linux-gnu/release/eh_*
run_fuzz_targets:
strategy:
Expand All @@ -89,14 +87,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone the fuzz corpora
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: gimli-rs/gimli-libfuzzer-corpora
path: corpora
- name: Download fuzz targets
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: fuzz-targets
path: fuzz-targets
# Note: -max_total_time=300 == 300 seconds == 5 minutes.
- name: Run `${{matrix.fuzz_target}}` fuzz target
run: |
Expand All @@ -109,15 +108,15 @@ jobs:
# can debug them.
- name: Upload fuzz artifacts
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{matrix.fuzz_target}}_artifacts
path: ./${{matrix.fuzz_target}}_artifacts

features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@v2
Expand All @@ -130,7 +129,7 @@ jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust nightly
uses: dtolnay/rust-toolchain@nightly
- run: cargo bench
Expand All @@ -145,7 +144,7 @@ jobs:
- powerpc64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -158,7 +157,7 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -171,7 +170,7 @@ jobs:
image: xd009642/tarpaulin
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
- name: Run cargo-tarpaulin
Expand All @@ -185,7 +184,7 @@ jobs:
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
- run: cargo doc

0 comments on commit 3e6ff1d

Please sign in to comment.