2 Commits

Author SHA1 Message Date
ac6d24df85 test cache
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 1m14s
Gentoo Utils / grep (push) Successful in 13s
Gentoo Utils / build (push) Successful in 30s
Gentoo Utils / docs (push) Successful in 18s
Gentoo Utils / check-format (push) Successful in 56s
Gentoo Utils / test (push) Successful in 1m19s
Gentoo Utils / fuzz (push) Successful in 1m21s
2025-12-27 13:19:50 -06:00
aa1d57cf94 ci: fix build cache path
All checks were successful
Gentoo Utils / check-format (push) Successful in 10s
Gentoo Utils / test (push) Successful in 34s
Gentoo Utils / build-oci-image (push) Successful in 20s
Gentoo Utils / grep (push) Successful in 4s
Gentoo Utils / docs (push) Successful in 17s
Gentoo Utils / build (push) Successful in 28s
Gentoo Utils / fuzz (push) Successful in 1m17s
2025-12-27 12:42:42 -06:00

View File

@@ -16,7 +16,7 @@ jobs:
continue-on-error: true
steps:
- name: Restore git cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
@@ -91,24 +91,27 @@ jobs:
container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps:
- 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
- name: Restore Git Cache
uses: actions/cache@v5
with:
path: |
subprojects
build
key: build-${{ gitea.repository }}-${{ gitea.sha }}
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v6
- name: Build
run: |
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
meson compile -C build
- name: Cache Build + Subprojects
uses: actions/cache@v5
with:
path: |
subprojects
build
key: build-${{ gitea.repository }}-${{ gitea.sha }}
# 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
@@ -117,13 +120,28 @@ 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: Restore git cache
uses: actions/cache@v5
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v6
- name: Restore build cache
uses: actions/cache/restore@v4
with:
path: |
subprojects
build
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
- name: test
run: |
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
@@ -136,13 +154,26 @@ 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: Restore Git Cache
uses: actions/cache@v5
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v6
- name: Restore Build Cache
uses: actions/cache/restore@v4
with:
path: |
subprojects
build
key: gitea-repo-${{ 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
@@ -164,13 +195,27 @@ jobs:
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: Restore Git Cache
uses: actions/cache@v5
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v6
- name: Restore Build Cache
uses: actions/cache/restore@v4
with:
path: |
subprojects
build
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
- name: Check Formatting
run: |
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
@@ -179,10 +224,16 @@ jobs:
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: Restore Git Cache
uses: actions/cache@v5
with:
path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v6