From b60ebabd3d5ab1ed4dec0effb76f883c92ee7fb8 Mon Sep 17 00:00:00 2001 From: pasta Date: Tue, 13 Aug 2024 11:53:29 +0700 Subject: [PATCH] ci: move depends sources into distinct cache to avoid duplication --- .github/workflows/guix-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/guix-build.yml b/.github/workflows/guix-build.yml index 8d1dd362198f4..f622e26ae748d 100644 --- a/.github/workflows/guix-build.yml +++ b/.github/workflows/guix-build.yml @@ -77,6 +77,14 @@ jobs: path: dash fetch-depth: 0 + - name: Cache Depends Sources + id: guix-cache-restore + uses: actions/cache@v3 + with: + path: | + ${{ github.workspace }}/dash/depends/sources + key: ${{ runner.os }}-guix-depends-sources + - name: Cache Guix and depends id: guix-cache-restore uses: actions/cache@v3 @@ -84,9 +92,7 @@ jobs: path: | ${{ github.workspace }}/.cache ${{ github.workspace }}/dash/depends/built - ${{ github.workspace }}/dash/depends/sources - ${{ github.workspace }}/dash/depends/work - /gnu/store + ${{ github.workspace }}/dash/depends/${{ matrix.build_target }} key: ${{ runner.os }}-guix-${{ matrix.build_target }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-guix-${{ matrix.build_target }}