finite-wasm 0.6.0

Guarantee deterministic limits on execution time and space resources made available to the WebAssembly programs in a runtime-agnostic way.
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"