Skip to content

Commit 9031749

Browse files
committed
ci(build): Go cache support & fix artifact path for Windows
1 parent fce9cc9 commit 9031749

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
with:
2424
go-version: "1.26"
2525

26+
- name: Cache Go Modules
27+
uses: actions/cache@v5
28+
with:
29+
path: |
30+
~/.cache/go-build
31+
~/go/pkg/mod
32+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
33+
2634
- name: Install Bazelisk on UNIX/Linux
2735
if: matrix.platform != 'windows-latest'
2836
run: |
@@ -52,5 +60,4 @@ jobs:
5260
with:
5361
name: tetris-artifact-${{ matrix.platform }}
5462
path: |
55-
${{ env.binary_path }}
56-
${{ env.binary_path }}.runfiles/
63+
${{ env.binary_path }}*

0 commit comments

Comments
 (0)