From 1e2f40a3ba75cf4e0b954a11447be9534484e1c8 Mon Sep 17 00:00:00 2001 From: penguin Date: Sat, 27 Dec 2025 13:36:47 -0600 Subject: [PATCH] fix cache --- .gitea/workflows/gentoo-utils.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index 96ec76e..20abd5b 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -16,7 +16,7 @@ jobs: continue-on-error: true steps: - name: Restore git cache - uses: actions/cache@v5 + uses: actions/cache@v4 with: path: .git key: gitea-repo-${{ gitea.repository }}-${{ gitea.ref }} @@ -94,19 +94,20 @@ jobs: - 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 + - name: Build Cache Setup + uses: actions/cache@v4 with: path: | subprojects build key: build-${{ gitea.repository }}-${{ gitea.sha }} + - name: Build + run: | + meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled 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 # when we have multiple build targets and configs. What we have currently is fine until we get lots of builds going test: