1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-09-25 17:51:11 +02:00

Only cache nix store

This commit is contained in:
Kristoffer Dalby 2022-05-27 10:30:07 +01:00
parent 51f15a1317
commit c850419c58

View File

@ -32,7 +32,7 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
with:
path: |
/nix
/nix/store
key: ${{ runner.os }}-nix-${{ hashFiles('**/flake.lock') }}
restore-keys: |
${{ runner.os }}-nix-
@ -46,23 +46,16 @@ jobs:
echo "::set-output name=go-build::$(nix develop --command -- go env GOCACHE)"
echo "::set-output name=go-mod::$(nix develop --command -- go env GOMODCACHE)"
- name: Go Build Cache
- name: Go Cache
uses: actions/cache@v3
if: steps.changed-files.outputs.any_changed == 'true'
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-build-
- name: Go Mod Cache
uses: actions/cache@v3
if: steps.changed-files.outputs.any_changed == 'true'
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
path: |
${{ steps.go-cache-paths.outputs.go-mod }}
${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
${{ runner.os }}-go-
- name: Run build
if: steps.changed-files.outputs.any_changed == 'true'