test cache
All checks were successful
Gentoo Utils / grep (push) Successful in 6s
Gentoo Utils / build (push) Successful in 29s
Gentoo Utils / check-format (push) Successful in 13s
Gentoo Utils / docs (push) Successful in 20s
Gentoo Utils / test (push) Successful in 35s
Gentoo Utils / fuzz (push) Successful in 1m19s
Gentoo Utils / build-oci-image (push) Successful in 20s

This commit is contained in:
2025-12-27 13:06:37 -06:00
parent aa1d57cf94
commit 6e385ba796

View File

@@ -16,13 +16,13 @@ jobs:
continue-on-error: true continue-on-error: true
steps: steps:
- name: Restore git cache - name: Restore git cache
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: .git path: .git
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,28 @@ 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 - name: Restore Git Cache
uses: actions/cache@v4 uses: actions/cache/restore@v5
with: with:
path: build path: .git
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
- name: build and check - 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
- 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 # 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,13 +124,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 - name: Restore git cache
uses: actions/cache@v4 uses: actions/cache/restore@v5
with: with:
path: build path: .git
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
- name: Restore build cache
uses: actions/cache/restore@v5
with:
path: |
subprojects
build
key: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
- name: test - name: test
run: | run: |
@@ -140,14 +158,22 @@ 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 - name: Restore Git Cache
uses: actions/cache@v4 uses: actions/cache/restore@v5
with: with:
path: build path: .git
key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }} key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }}
- name: Checkout repo
uses: actions/checkout@v5
- name: Checkout repo
uses: actions/checkout@v6
- name: Restore Build Cache
uses: actions/cache/restore@v5
with:
path: |
subprojects
build
key: gitea-repo-${{ 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
@@ -169,12 +195,26 @@ jobs:
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: Restore Git Cache
uses: actions/cache/restore@v5
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: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
- name: Check Formatting - name: Check Formatting
run: | run: |
@@ -184,12 +224,26 @@ jobs:
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: Restore Git Cache
uses: actions/cache/restore@v5
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: gitea-repo-${{ gitea.repository }}-${{ gitea.sha }}
- name: Build Documentation - name: Build Documentation
run: | run: |
@@ -202,8 +256,14 @@ 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/restore@v5
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: 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