Skip to content

Commit

Permalink
Parametrize cargo fuzz and nightly version
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Jul 8, 2024
1 parent 9753614 commit eee0719
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/check-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read pinned nightly version
id: nightly_and_argo_fuzz_version
shell: bash
run: |
NIGHTLY_VERSION=$(cat pinned-nightly-version)
CARGO_FUZZ_VERSION$(cat pinned-cargo-fuzz-version)
echo "::set-output name=nightly_version::$NIGHTLY_VERSION"
echo "::set-output name=cargo_fuzz_version::$CARGO_FUZZ_VERSION"
- name: Install nightly
run: rustup install +${{ steps.nightly_and_cargo_fuzz_version.outputs.nightly_version }}

run: rustup install nightly-2024-07-07
- name: Install cargo fuzz
run: cargo install cargo-fuzz --version=0.12.0
run: cargo install cargo-fuzz --version=${{ steps.nightly_and_cargo_fuzz_version.output.cargo_fuzz_version }}

- name: Build fuzz targets
run: cargo +nightly fuzz build --dev
run: cargo +${{ steps.nightly_and_cargo_fuzz_version.outputs.nightly_version }} fuzz build --dev

- name: Lint
run: cargo +nightly clippy --package=javy-fuzz -- -D warnings
run: cargo +${{ steps.nightly_and_cargo_fuzz_version.outputs.nightly_version }} clippy --package=javy-fuzz -- -D warnings

1 change: 1 addition & 0 deletions pinned-cargo-fuzz-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.0
1 change: 1 addition & 0 deletions pinned-nightly-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2024-07-07

0 comments on commit eee0719

Please sign in to comment.