Only run QEMU tests if there is a QEMU-related change. (#2090)

* Only run QEMU tests if there is a change.

* fmt.
This commit is contained in:
Romain Malmain 2024-04-22 19:14:23 +02:00 committed by GitHub
parent fef6c8d1b1
commit 98863fbff5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -361,7 +361,24 @@ jobs:
shell: bash shell: bash
run: RUN_ON_CI=1 LLVM_CONFIG=llvm-config ./scripts/test_fuzzer.sh ${{ matrix.fuzzer }} run: RUN_ON_CI=1 LLVM_CONFIG=llvm-config ./scripts/test_fuzzer.sh ${{ matrix.fuzzer }}
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
qemu: ${{ steps.filter.outputs.qemu }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
qemu:
- 'libafl_qemu/**'
- 'fuzzers/*qemu*/**'
fuzzers-qemu: fuzzers-qemu:
needs: changes
if: ${{ needs.changes.outputs.qemu == 'true' }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]