fix: add test-only LockFile::read_pid for cross-platform testing
#1315
Workflow file for this run
This file contains hidden or 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: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| fuzz: | |
| if: ${{ !github.event.act }} | |
| runs-on: ubuntu-22.04-arm | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| fuzz_target: [ | |
| dash_outpoint_string, | |
| dash_deserialize_amount, | |
| # TODO fix the inputs placed in fuzz/hfuzz_input/deserialize_transaction/input | |
| # dash_deserialize_transaction, | |
| dash_deser_net_msg, | |
| dash_deserialize_address, | |
| dash_script_bytes_to_asm_fmt, | |
| # dash_deserialize_prefilled_transaction, | |
| dash_deserialize_witness, | |
| # dash_deserialize_psbt, | |
| dash_deserialize_block, | |
| dash_deserialize_script, | |
| hashes_json, | |
| hashes_cbor, | |
| hashes_sha256, | |
| hashes_ripemd160, | |
| hashes_sha512_256, | |
| hashes_sha512, | |
| hashes_sha1, | |
| ] | |
| 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 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.89 | |
| - name: Cache cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "fuzz -> target" | |
| - name: fuzz | |
| run: cd fuzz && ./fuzz.sh "${{ matrix.fuzz_target }}" | |
| - run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: executed_${{ matrix.fuzz_target }} | |
| path: executed_${{ matrix.fuzz_target }} | |
| verify-execution: | |
| if: ${{ !github.event.act }} | |
| needs: fuzz | |
| runs-on: ubuntu-22.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| - 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 |