Compare commits
6 Commits
4873022c25
...
9ff0ee0329
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ff0ee0329 | |||
| 30ec6dad99 | |||
| 5fe3919bc6 | |||
| 2b48fbf3cb | |||
| 91b5ddaad2 | |||
| 925ff03057 |
@@ -9,7 +9,6 @@ defaults:
|
||||
jobs:
|
||||
build-oci-image:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Restore git cache
|
||||
uses: actions/cache@v4
|
||||
@@ -98,10 +97,6 @@ jobs:
|
||||
|
||||
- name: build and check
|
||||
run: |
|
||||
echo $USER
|
||||
echo "CC=$CC"
|
||||
echo "CXX=$CXX"
|
||||
source /etc/profile
|
||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||
meson compile -C build
|
||||
|
||||
@@ -125,6 +120,36 @@ jobs:
|
||||
meson compile -C build
|
||||
ninja test -C build
|
||||
|
||||
fuzz:
|
||||
runs-on: brutalisk
|
||||
timeout: 1m
|
||||
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]
|
||||
|
||||
@@ -11,4 +11,5 @@ ${PROJECT_DIR}/scripts/atom.py <${in} >${out} \
|
||||
| ${PROJECT_DIR}/build/fuzz/atom/parser/fuzzer >${in} <${out} \
|
||||
${PROJECT_DIR}/build/atom_parser_fuzzer_corpus \
|
||||
-only_ascii=1 \
|
||||
-fork=$(($(nproc) / 2))
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user