on main help sign in
attempt cache builds
commit259858df5fcaecb75ad8cf09c66ac2278a257204 authorDax Raad <d@ironbay.co> dateTue 22 Apr 2025, 21:20 (2 years ago) parent289f6af
2 files changed+28
.github/workflows/build.yml+14 .github/workflows/release.yml+14
.github/workflows/build.yml+14
@@ -25,8 +25,22 @@ jobs:
2525 - uses: actions/setup-go@v5
2626 with:
2727 go-version: ">=1.23.2"
28+ cache: true
29+ cache-dependency-path: go.sum
2830
2931 - 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+
3044 - uses: goreleaser/goreleaser-action@v6
3145 with:
3246 distribution: goreleaser
.github/workflows/release.yml+14
@@ -25,8 +25,22 @@ jobs:
2525 - uses: actions/setup-go@v5
2626 with:
2727 go-version: ">=1.23.2"
28+ cache: true
29+ cache-dependency-path: go.sum
2830
2931 - 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+
3044 - uses: goreleaser/goreleaser-action@v6
3145 with:
3246 distribution: goreleaser