From cf81b3d915325911ce310857f94fdf93cf8c07bf Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 17:24:06 +1100 Subject: [PATCH] ci: cache packages after install Instead of at end of workflow --- .github/actions/setup-arch/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-arch/action.yml b/.github/actions/setup-arch/action.yml index 528a7921..5f419297 100644 --- a/.github/actions/setup-arch/action.yml +++ b/.github/actions/setup-arch/action.yml @@ -9,8 +9,8 @@ runs: shell: bash run: echo "week=$(date +%Y-%U)" >> $GITHUB_OUTPUT - - name: Cache packages - uses: actions/cache@v4 + - name: Restore package cache + uses: actions/cache/restore@v4 with: path: /var/cache/pacman/pkg key: pacman-${{ steps.date.outputs.week }}-${{ hashFiles('.github/actions/setup-arch/action.yml') }} @@ -37,3 +37,9 @@ runs: install_pkg cpptrace # Dep for qs install_pkg quickshell-git + + - name: Save packages to cache + uses: actions/cache/save@v4 + with: + path: /var/cache/pacman/pkg + key: pacman-${{ steps.date.outputs.week }}-${{ hashFiles('.github/actions/setup-arch/action.yml') }}