update libsimplicity to 121b2951d8cca3d73dccd6fcbe721f2195025067 #265
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
# Automatically generated by fuzz/generate-files.sh | |
name: Fuzz | |
on: | |
push: | |
branches: | |
- master | |
- 'test-ci/**' | |
pull_request: | |
jobs: | |
fuzz: | |
if: ${{ !github.event.act }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
fuzz_target: [ | |
c_rust_merkle, | |
decode_natural, | |
decode_program, | |
parse_human, | |
] | |
steps: | |
- name: Install test dependencies | |
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
id: cache-fuzz | |
with: | |
path: | | |
~/.cargo/bin | |
fuzz/target | |
target | |
key: cache-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: '1.65.0' | |
- name: fuzz | |
run: | | |
echo "Using RUSTFLAGS $RUSTFLAGS" | |
cd fuzz && cargo update && cargo update -p cc --precise 1.0.83 && ./fuzz.sh "${{ matrix.fuzz_target }}" | |
- run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: executed_${{ matrix.fuzz_target }} | |
path: executed_${{ matrix.fuzz_target }} | |
verify-execution: | |
if: ${{ !github.event.act }} | |
needs: fuzz | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v3 | |
- name: Display structure of downloaded files | |
run: ls -R | |
- run: find executed_* -type f -exec cat {} + | sort > executed | |
- run: source ./fuzz/fuzz-util.sh && listTargetNames | sort | diff - executed |