From 03703eba7621775b82dde3258f0be794b1851f85 Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Fri, 1 Mar 2024 19:05:52 +0100 Subject: [PATCH] Cache the built package --- .github/workflows/build-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index c012440..86e5141 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -113,6 +113,13 @@ jobs: if: steps.nodejs_shared_cache.outputs.cache-hit != 'true' run: sudo -u $UNPRIVILEGED build/archlinux/nodejs-shared/build + - name: Cache nodejs-shared package + if: steps.nodejs_shared_cache.outputs.cache-hit != 'true' + uses: actions/cache/restore@v4 + with: + path: build/archlinux/nodejs-shared/${{ steps.nodejs_shared_pkgbuild.outputs.pkg }} + key: ${{ steps.nodejs_shared_pkgbuild.outputs.pkg }} + - name: Install nodejs-shared run: pacman -U --noconfirm build/archlinux/nodejs-shared/${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}