3 Commits

Author SHA1 Message Date
42f404d5d6 test
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 20s
Gentoo Utils / grep (push) Successful in 5s
Gentoo Utils / build (push) Successful in 23s
Gentoo Utils / check-format (push) Successful in 10s
Gentoo Utils / fuzz (push) Successful in 1m14s
Gentoo Utils / test (push) Successful in 29s
Gentoo Utils / docs (push) Successful in 23s
2025-12-27 16:26:15 -06:00
f5ae082dd4 ci: further optimize build
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 20s
Gentoo Utils / grep (push) Successful in 4s
Gentoo Utils / build (push) Successful in 29s
Gentoo Utils / check-format (push) Successful in 9s
Gentoo Utils / test (push) Successful in 28s
Gentoo Utils / docs (push) Successful in 28s
Gentoo Utils / fuzz (push) Successful in 1m15s
2025-12-27 16:17:58 -06:00
d8d5fd4495 ci: fix build cache path
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 22s
Gentoo Utils / grep (push) Successful in 5s
Gentoo Utils / build (push) Successful in 29s
Gentoo Utils / check-format (push) Successful in 9s
Gentoo Utils / docs (push) Successful in 19s
Gentoo Utils / test (push) Successful in 28s
Gentoo Utils / fuzz (push) Successful in 1m19s
2025-12-27 16:13:04 -06:00

View File

@@ -22,7 +22,7 @@ jobs:
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }} key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -91,20 +91,23 @@ jobs:
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Restore git cache
uses: actions/cache@v4
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
- name: build and check - name: Build Cache Setup
uses: actions/cache@v5
with:
path: |
subprojects
build
key: build-${{ gitea.repository }}-${{ gitea.sha }}
- name: Build
run: | run: |
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
meson compile -C build meson compile -C build
# FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy # FIXME: Currently this rebuilds everything. Instead we should bring over the build dir from the build job. This will come in handy
# when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going # when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going
test: test:
@@ -116,19 +119,25 @@ jobs:
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Restore git cache
uses: actions/cache@v4
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 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 - name: test
run: | run: |
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build set -x
ls build
[ -d build ] || meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
meson compile -C build meson compile -C build
ninja test -C build ninja test -C build
set +x
fuzz: fuzz:
runs-on: gentoo runs-on: gentoo
@@ -140,14 +149,16 @@ jobs:
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Restore git cache
uses: actions/cache@v4
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 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? # FIXME: Get rid of this step when portage has fixes merged?
# needed because portage has fixes upstream we need that arent stable yet # needed because portage has fixes upstream we need that arent stable yet
- name: Checkout tip of portage - name: Checkout tip of portage
@@ -162,39 +173,55 @@ jobs:
run: | run: |
source ./portage/.venv/bin/activate source ./portage/.venv/bin/activate
which emerge 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 meson compile atom_parser_fuzzer:alias -C build
timeout 10m ./scripts/atom_parser_fuzz.sh timeout 10m ./scripts/atom_parser_fuzz.sh
continue-on-error: true continue-on-error: true
check-format: check-format:
runs-on: gentoo runs-on: gentoo
needs: [build-oci-image] needs: [build-oci-image, build]
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 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 - name: Check Formatting
run: | 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 meson format --check-only --recursive
ninja rustfmt -C build ninja rustfmt -C build
docs: docs:
runs-on: gentoo runs-on: gentoo
needs: [build-oci-image] needs: [build-oci-image, build]
container: container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 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 - name: Build Documentation
run: | run: |
meson setup -Ddocs=enabled docs [ -d build ] || meson setup -Ddocs=enabled docs
ninja rustdoc -C docs ninja rustdoc -C build
grep: grep:
runs-on: gentoo runs-on: gentoo
@@ -203,7 +230,7 @@ jobs:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }} image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
- name: grep for patterns - name: grep for patterns
# negate git grep ret code because 1 means no findings # negate git grep ret code because 1 means no findings