2020-09-30 04:23:35 +00:00
|
|
|
name: Cloud Hypervisor Cargo Fuzz Build
|
|
|
|
on: [pull_request, create]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
name: Cargo Fuzz Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
target:
|
|
|
|
- x86_64-unknown-linux-gnu
|
2024-01-08 15:21:01 +00:00
|
|
|
env:
|
|
|
|
RUSTFLAGS: -D warnings
|
2020-09-30 04:23:35 +00:00
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
2023-12-11 11:56:22 +00:00
|
|
|
uses: actions/checkout@v4
|
2020-09-30 04:23:35 +00:00
|
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
override: true
|
|
|
|
- name: Install Cargo fuzz
|
2024-01-08 15:21:01 +00:00
|
|
|
run: cargo install cargo-fuzz
|
|
|
|
- name: Fuzz Build
|
2020-09-30 04:23:35 +00:00
|
|
|
run: cargo fuzz build
|
2024-01-08 15:21:01 +00:00
|
|
|
- name: Fuzz Check
|
|
|
|
run: cargo fuzz check
|