2020-09-30 04:23:35 +00:00
|
|
|
name: Cloud Hypervisor Cargo Fuzz Build
|
2024-02-28 09:49:28 +00:00
|
|
|
on: [pull_request, merge_group]
|
2024-02-28 15:17:57 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2020-09-30 04:23:35 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
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 }})
|
2024-03-08 16:31:45 +00:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2020-09-30 04:23:35 +00:00
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
- 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
|