use slice::join #24
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 | |
# See Cargo.toml for reasons | |
- run: cargo install --git https://github.com/Ekleog-NEAR/bolero --rev 362328af9f0539f9d6ee62bb4334afaa0a71b572 | |
- run: opam exec -- cargo +nightly bolero build-clusterfuzz --all-features | |
- run: | | |
NAME="finite-wasm-$(env TZ=Etc/UTC date +"%Y%m%d%H%M%S")" | |
gsutil cp -Z target/fuzz/clusterfuzz.tar "gs://fuzzer_targets/finite-wasm/$NAME.tar.gz" |