File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 25
25
- uses : actions/setup-go@v5
26
26
with :
27
27
go-version : " >=1.23.2"
28
+ cache : true
29
+ cache-dependency-path : go.sum
28
30
29
31
- run : go mod download
32
+
33
+ - name : Cache GoReleaser build
34
+ uses : actions/cache@v3
35
+ with :
36
+ path : |
37
+ ~/.cache/go-build
38
+ dist/
39
+ .goreleaser.cache
40
+ key : ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }}-${{ hashFiles('go.sum') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-go-build-
43
+
30
44
- uses : goreleaser/goreleaser-action@v6
31
45
with :
32
46
distribution : goreleaser
Original file line number Diff line number Diff line change 25
25
- uses : actions/setup-go@v5
26
26
with :
27
27
go-version : " >=1.23.2"
28
+ cache : true
29
+ cache-dependency-path : go.sum
28
30
29
31
- run : go mod download
32
+
33
+ - name : Restore GoReleaser build cache
34
+ uses : actions/cache@v3
35
+ with :
36
+ path : |
37
+ ~/.cache/go-build
38
+ dist/
39
+ .goreleaser.cache
40
+ key : ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }}-${{ hashFiles('go.sum') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-go-build-
43
+
30
44
- uses : goreleaser/goreleaser-action@v6
31
45
with :
32
46
distribution : goreleaser
You can’t perform that action at this time.
0 commit comments