add SpdmVersion13 enum value. #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FUZZING CODE | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
fuzzing_test: | |
strategy: | |
matrix: | |
fuzz_hash_transcript_data_feature: [true, false] | |
fuzz_mut_auth_feature: [true, false] | |
runs-on: ubuntu-22.04 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: install NASM | |
uses: ilammy/setup-nasm@v1 | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "12.0.1" | |
directory: ${{ runner.temp }}/llvm | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly-2023-08-28 | |
override: true | |
components: rust-src, rustfmt, clippy, llvm-tools-preview | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Check code | |
run: | | |
./sh_script/build.sh -c | |
- name: Install AFL (Linux) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --force --version 0.12.17 afl | |
if: runner.os == 'Linux' | |
- name: Install Cargo-Fuzz (Linux) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: cargo-fuzz | |
if: runner.os == 'Linux' | |
- name: set core_pattern for core | |
run: | | |
sudo su - root <<EOF | |
echo core >/proc/sys/kernel/core_pattern | |
pushd /sys/devices/system/cpu | |
echo performance | tee cpu*/cpufreq/scaling_governor | |
popd | |
exit | |
EOF | |
if: runner.os == 'Linux' | |
- name: Run fuzz | |
env: | |
FUZZ_HASH_TRANSCRIPT_DATA_FEATURE: ${{ matrix.fuzz_hash_transcript_data_feature }} | |
FUZZ_MUT_AUTH_FEATURE: ${{ matrix.fuzz_mut_auth_feature }} | |
run: | | |
./sh_script/fuzz_run.sh |