Skip to content

Commit 7320712

Browse files
committed
CI: enable Go cache
Signed-off-by: Akihiro Suda <[email protected]>
1 parent d19bd42 commit 7320712

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
platform: [ubuntu-latest, macos-latest]
1414
runs-on: ${{ matrix.platform }}
1515
steps:
16-
- uses: actions/setup-go@v4
17-
with:
18-
go-version: ${{ matrix.go-version }}
1916
- uses: actions/checkout@v3
2017
with:
2118
fetch-depth: 1
19+
- uses: actions/setup-go@v4
20+
with:
21+
go-version: ${{ matrix.go-version }}
2222
- run: make
2323
- run: sudo make install
2424
- run: go test -covermode=atomic -race -v ./...

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
timeout-minutes: 20
1717
steps:
18-
- uses: actions/setup-go@v4
19-
with:
20-
go-version: ${{ matrix.go-version }}
2118
- uses: actions/checkout@v3
2219
with:
2320
path: go/src/github.com/lima-vm/sshocker
21+
- uses: actions/setup-go@v4
22+
with:
23+
go-version: ${{ matrix.go-version }}
2424
- name: "Compile binaries"
2525
working-directory: go/src/github.com/lima-vm/sshocker
2626
run: make cross

0 commit comments

Comments
 (0)