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:
parent
51f15a1317
commit
c850419c58
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user