test: extend caches for build (#686)
* test: extend caches for build * Update caching strategy in Go workflow * Remove extra whitespace in go.yml
This commit is contained in:
34
.github/workflows/go.yml
vendored
34
.github/workflows/go.yml
vendored
@@ -22,12 +22,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: "go.mod"
|
go-version-file: "go.mod"
|
||||||
|
|
||||||
- 'name': 'Set up tools cache'
|
- name: Cache toolbox binaries
|
||||||
'uses': 'actions/cache@v4'
|
uses: actions/cache@v4
|
||||||
'with':
|
with:
|
||||||
'path': "${{ github.workspace }}/bin"
|
path: ${{ github.workspace }}/bin
|
||||||
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
|
key: ${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}
|
||||||
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: make lint
|
run: make lint
|
||||||
@@ -38,7 +37,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
@@ -49,12 +47,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: "go.mod"
|
go-version-file: "go.mod"
|
||||||
|
|
||||||
- 'name': 'Set up tools cache'
|
- name: Cache toolbox binaries
|
||||||
'uses': 'actions/cache@v4'
|
uses: actions/cache@v4
|
||||||
'with':
|
with:
|
||||||
'path': "${{ github.workspace }}/bin"
|
path: ${{ github.workspace }}/bin
|
||||||
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
|
key: ${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}
|
||||||
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
|
|
||||||
|
|
||||||
- name: Model
|
- name: Model
|
||||||
run: make model
|
run: make model
|
||||||
@@ -82,12 +79,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: "go.mod"
|
go-version-file: "go.mod"
|
||||||
|
|
||||||
- 'name': 'Set up tools cache'
|
- name: Cache toolbox binaries
|
||||||
'uses': 'actions/cache@v4'
|
uses: actions/cache@v4
|
||||||
'with':
|
with:
|
||||||
'path': "${{ github.workspace }}/bin"
|
path: ${{ github.workspace }}/bin
|
||||||
'key': "${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}"
|
key: ${{ runner.os }}-${{ github.job }}-tools-${{ hashFiles('.toolbox.mk') }}
|
||||||
'restore-keys': '${{ runner.os }}-${{ github.job }}-tools-'
|
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
run: make test-release
|
run: make test-release
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
## toolbox - start
|
## toolbox - start
|
||||||
## Generated with https://github.com/bakito/toolbox
|
## Generated with https://github.com/bakito/toolbox
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user