Compare commits
3 Commits
feature/us
...
2be0b16de7
| Author | SHA1 | Date | |
|---|---|---|---|
| 2be0b16de7 | |||
| f5ae082dd4 | |||
| d8d5fd4495 |
@@ -94,8 +94,6 @@ jobs:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# TODO: This is currently unused by other jobs. I couldn't make meson not regenerate things regardless of
|
||||
# the build dir already existing.
|
||||
- name: Build Cache Setup
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
@@ -117,18 +115,29 @@ jobs:
|
||||
env:
|
||||
CC: "clang"
|
||||
CXX: "clang++"
|
||||
needs: [build-oci-image]
|
||||
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@v6
|
||||
|
||||
- name: Restore build cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
subprojects
|
||||
build
|
||||
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||
set -x
|
||||
[ -d build ] || echo "build doesnt exist"
|
||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
|
||||
meson compile -C build
|
||||
ninja test -C build
|
||||
set +x
|
||||
|
||||
fuzz:
|
||||
runs-on: gentoo
|
||||
@@ -136,13 +145,20 @@ jobs:
|
||||
CC: "clang"
|
||||
CXX: "clang++"
|
||||
FUZZER_TIMEOUT_S: 300
|
||||
needs: [build-oci-image]
|
||||
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@v6
|
||||
|
||||
- name: Restore Build Cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
subprojects
|
||||
build
|
||||
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
||||
# 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
|
||||
@@ -157,39 +173,55 @@ jobs:
|
||||
run: |
|
||||
source ./portage/.venv/bin/activate
|
||||
which emerge
|
||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||
meson compile atom_parser_fuzzer:alias -C build
|
||||
timeout 10m ./scripts/atom_parser_fuzz.sh
|
||||
continue-on-error: true
|
||||
|
||||
check-format:
|
||||
runs-on: gentoo
|
||||
needs: [build-oci-image]
|
||||
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@v6
|
||||
|
||||
- name: Restore Build Cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
subprojects
|
||||
build
|
||||
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
||||
|
||||
- name: Check Formatting
|
||||
run: |
|
||||
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
|
||||
meson format --check-only --recursive
|
||||
ninja rustfmt -C build
|
||||
|
||||
docs:
|
||||
runs-on: gentoo
|
||||
needs: [build-oci-image]
|
||||
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@v6
|
||||
|
||||
- name: Restore Build Cache
|
||||
uses: actions/cache/restore@v5
|
||||
with:
|
||||
path: |
|
||||
subprojects
|
||||
build
|
||||
key: build-${{ gitea.repository }}-${{ gitea.sha }}
|
||||
|
||||
- name: Build Documentation
|
||||
run: |
|
||||
meson setup -Ddocs=enabled docs
|
||||
ninja rustdoc -C docs
|
||||
[ -d build ] || meson setup -Ddocs=enabled build
|
||||
ninja rustdoc -C build
|
||||
|
||||
grep:
|
||||
runs-on: gentoo
|
||||
|
||||
Reference in New Issue
Block a user