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'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/nix
|
/nix/store
|
||||||
key: ${{ runner.os }}-nix-${{ hashFiles('**/flake.lock') }}
|
key: ${{ runner.os }}-nix-${{ hashFiles('**/flake.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-nix-
|
${{ 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-build::$(nix develop --command -- go env GOCACHE)"
|
||||||
echo "::set-output name=go-mod::$(nix develop --command -- go env GOMODCACHE)"
|
echo "::set-output name=go-mod::$(nix develop --command -- go env GOMODCACHE)"
|
||||||
|
|
||||||
- name: Go Build Cache
|
- name: Go Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.go-cache-paths.outputs.go-build }}
|
path: |
|
||||||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
|
${{ steps.go-cache-paths.outputs.go-mod }}
|
||||||
restore-keys: |
|
${{ steps.go-cache-paths.outputs.go-build }}
|
||||||
${{ 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 }}
|
|
||||||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-mod-
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
|
Loading…
Reference in New Issue
Block a user