ci: cache depends sources in a seperate step

This commit is contained in:
pasta 2024-10-24 18:54:41 -05:00
parent 0587790c01
commit 354d6a9aab
No known key found for this signature in database
GPG Key ID: E2F3D7916E722D38
2 changed files with 18 additions and 1 deletions

View File

@ -91,6 +91,16 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache depends sources
uses: actions/cache@v4
with:
path: |
depends/sources
# We don't care about no specific key as depends system will handle that for us
key: depends-sources-${{ hashFiles('depends/packages/*') }}
restore-keys: |
depends-sources-
- name: Cache dependencies
uses: actions/cache@v4
with:

View File

@ -79,6 +79,14 @@ jobs:
path: dash
fetch-depth: 0
- name: Cache depends sources
uses: actions/cache@v4
with:
path: dash/depends/sources
key: depends-sources-${{ hashFiles('dash/depends/packages/*') }}
restore-keys: |
depends-sources-
- name: Cache Guix and depends
id: guix-cache-restore
uses: actions/cache@v3
@ -86,7 +94,6 @@ jobs:
path: |
${{ github.workspace }}/.cache
${{ github.workspace }}/dash/depends/built
${{ github.workspace }}/dash/depends/sources
${{ github.workspace }}/dash/depends/work
/gnu/store
key: ${{ runner.os }}-guix-${{ matrix.build_target }}-${{ github.sha }}