oasis-cbor 0.5.1

Rust CBOR serialization built as a thin wrapper around sk-cbor.
Documentation
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: ci-difffuzz

# Trigger the workflow when:
on:
  # A push occurs to one of the matched branches.
  push:
    branches:
      - main
  # Or when a pull request event occurs for a pull request against one of the
  # matched branches.
  pull_request:
    branches:
      - main

jobs:

  difffuzz:
    # NOTE: This name appears in GitHub's Checks API.
    name: difffuzz
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          submodules: true

      - name: Set up Rust
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true

      - name: Set up Go
        uses: actions/setup-go@v3
        with:
          go-version: "1.18.x"

      - name: Build difffuzz tools
        working-directory: difffuzz
        run: cargo build --release

      - name: Run differential fuzzer sanity tests
        working-directory: difffuzz
        run: go test -v
        env:
          LD_LIBRARY_PATH: target/release

      - name: Run differential fuzzer
        working-directory: difffuzz
        run: go test -fuzz FuzzDifferential -fuzztime 1m
        env:
          LD_LIBRARY_PATH: target/release