ci: add fuzzer job

This commit is contained in:
2025-12-13 20:24:27 -06:00
parent 73930ec63d
commit 925ff03057

View File

@@ -125,6 +125,35 @@ jobs:
meson compile -C build
ninja test -C build
fuzz:
runs-on: brutalisk
env:
CC: 'clang'
CXX: 'clang++'
needs: [build-oci-image, build]
container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps:
- name: Checkout repo
uses: actions/checkout@v5
# FIXME: Get rid of this step when portage has fixes merged?
# needed because portage has fixes upstream we need that arent stable yet
- name: Checkout tip of portage
run: |
git clone https://github.com/gentoo/portage.git
cd portage
python -m venv && ./venv/bin/pip install -e .
source ./venv/bin/activate
which emerge
- name: build and fuzz
run: |
which emerge
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
meson compile atom_parser_fuzzer:alias -C build
./scripts/fuzz.sh
check-format:
runs-on: brutalisk
needs: [build-oci-image]