switch to a released version of cargo-bolero #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package fuzz targets | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- fuzz-test # Push to this branch to trigger this workflow for testing changes. | |
jobs: | |
build: | |
runs-on: "ubuntu-20.04" | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: 4.13.1 | |
- id: "auth" | |
uses: "google-github-actions/auth@v1" | |
with: | |
workload_identity_provider: "projects/968400232856/locations/global/workloadIdentityPools/project-identity-pool/providers/github-provider" | |
service_account: "near-fuzzer-service-account@near-fuzzer.iam.gserviceaccount.com" | |
- uses: "google-github-actions/setup-gcloud@v1" | |
with: | |
version: ">= 416.0.0" | |
- run: rustup default nightly | |
- run: opam install ocamlbuild | |
- uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941 | |
with: | |
crate: cargo-bolero | |
- run: | | |
NAME="finite-wasm-$(env TZ=Etc/UTC date +"%Y%m%d%H%M%S")" | |
opam exec -- cargo +nightly bolero build-clusterfuzz --all-features --profile fuzz | |
gsutil cp -Z target/fuzz/clusterfuzz.tar "gs://fuzzer_targets/finite-wasm/$NAME.tar.gz" |