File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 uses : actions/setup-go@v5
2222 with :
2323 go-version-file : go.mod
24+ cache : true
2425
2526 - name : Run tests
2627 run : go test -v -race ./...
@@ -38,12 +39,16 @@ jobs:
3839 uses : actions/setup-go@v5
3940 with :
4041 go-version-file : go.mod
42+ cache : true
4143
4244 - name : Set up QEMU
4345 uses : docker/setup-qemu-action@v3
4446
4547 - name : Set up Docker Buildx
4648 uses : docker/setup-buildx-action@v3
49+ with :
50+ driver-opts : image=moby/buildkit:master
51+ buildkitd-flags : --debug
4752
4853 - name : Log in to GitHub Container Registry
4954 uses : docker/login-action@v3
6065 with :
6166 distribution : goreleaser
6267 version : ' ~> v2'
63- args : release --clean
68+ args : release --clean --parallelism 2
6469 env :
6570 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6671 HOMEBREW_TAP_TOKEN : ${{ secrets.HOMEBREW_TAP_TOKEN }}
Original file line number Diff line number Diff line change @@ -30,21 +30,12 @@ builds:
3030 - linux
3131 - darwin
3232 - windows
33- - freebsd
34- - openbsd
35- - netbsd
3633 goarch :
3734 - amd64
3835 - arm64
39- - " 386"
40- - arm
41- goarm :
42- - " 7"
4336 ignore :
4437 - goos : windows
4538 goarch : arm64
46- - goos : windows
47- goarm : " 7"
4839
4940archives :
5041 - id : vhs
@@ -207,7 +198,7 @@ homebrew_casks:
207198
208199 Documentation: https://github.com/agentstation/vhs
209200
210- # Docker configuration
201+ # Docker configuration - optimized with caching
211202dockers :
212203 - id : vhs-amd64
213204 ids :
@@ -220,6 +211,8 @@ dockers:
220211 use : buildx
221212 build_flag_templates :
222213 - " --pull"
214+ - " --cache-from=type=gha"
215+ - " --cache-to=type=gha,mode=max"
223216 - " --label=org.opencontainers.image.created={{.Date}}"
224217 - " --label=org.opencontainers.image.title={{.ProjectName}}"
225218 - " --label=org.opencontainers.image.revision={{.FullCommit}}"
@@ -240,6 +233,8 @@ dockers:
240233 use : buildx
241234 build_flag_templates :
242235 - " --pull"
236+ - " --cache-from=type=gha"
237+ - " --cache-to=type=gha,mode=max"
243238 - " --label=org.opencontainers.image.created={{.Date}}"
244239 - " --label=org.opencontainers.image.title={{.ProjectName}}"
245240 - " --label=org.opencontainers.image.revision={{.FullCommit}}"
You can’t perform that action at this time.
0 commit comments