This repository was archived by the owner on Apr 5, 2026. It is now read-only.
ci: add AddressSanitizer job to catch memory errors at build time #17
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
| name: Fuzz Testing | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| fuzz: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang libssl-dev zlib1g-dev | |
| - name: Build fuzz targets | |
| run: make fuzz CC=clang | |
| - name: Run fuzz tests (60s each) | |
| run: make fuzz-run FUZZ_DURATION=60 | |
| - name: Upload crash artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fuzz-crashes | |
| path: | | |
| fuzz/crash-* | |
| fuzz/oom-* | |
| fuzz/timeout-* |