-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (35 loc) · 1.27 KB
/
fuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v2"
with:
workload_identity_provider: "projects/346595944828/locations/global/workloadIdentityPools/github-pool/providers/github-provider"
service_account: "github-service-account@nearone-clusterfuzz.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://nearone_fuzzer_targets/finite-wasm/$NAME.tar.gz"