forked from TrueCloudLab/lego
chore: fix github action cache. (#1457)
This commit is contained in:
parent
71a3bbc8dd
commit
8e7bba485f
2 changed files with 10 additions and 6 deletions
13
.github/workflows/go-cross.yml
vendored
13
.github/workflows/go-cross.yml
vendored
|
@ -34,11 +34,16 @@ jobs:
|
||||||
- name: Cache Go modules
|
- name: Cache Go modules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
# In order:
|
||||||
|
# * Module download cache
|
||||||
|
# * Build cache (Linux)
|
||||||
|
# * Build cache (Mac)
|
||||||
|
# * Build cache (Windows)
|
||||||
path: |
|
path: |
|
||||||
~/go/pkg/mod # Module download cache
|
~/go/pkg/mod
|
||||||
~/.cache/go-build # Build cache (Linux)
|
~/.cache/go-build
|
||||||
~/Library/Caches/go-build # Build cache (Mac)
|
~/Library/Caches/go-build
|
||||||
'%LocalAppData%\go-build' # Build cache (Windows)
|
%LocalAppData%\go-build
|
||||||
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
|
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.go-version }}-go-
|
${{ runner.os }}-${{ matrix.go-version }}-go-
|
||||||
|
|
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.16
|
GO_VERSION: 1.16
|
||||||
GOLANGCI_LINT_VERSION: v1.40.1
|
GOLANGCI_LINT_VERSION: v1.41.1
|
||||||
HUGO_VERSION: 0.54.0
|
HUGO_VERSION: 0.54.0
|
||||||
SEIHON_VERSION: v0.8.3
|
SEIHON_VERSION: v0.8.3
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
@ -47,7 +47,6 @@ jobs:
|
||||||
|
|
||||||
- name: Check and get dependencies
|
- name: Check and get dependencies
|
||||||
run: |
|
run: |
|
||||||
go mod download
|
|
||||||
go mod tidy
|
go mod tidy
|
||||||
git diff --exit-code go.mod
|
git diff --exit-code go.mod
|
||||||
git diff --exit-code go.sum
|
git diff --exit-code go.sum
|
||||||
|
|
Loading…
Reference in a new issue