diff options
| author | Dax Raad <[email protected]> | 2025-04-22 21:20:35 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-04-22 21:20:35 -0400 |
| commit | 259858df5fcaecb75ad8cf09c66ac2278a257204 (patch) | |
| tree | 82c33e932588e5def69bc5d3d334ce2dee7d9682 /.github/workflows | |
| parent | 289f6af3de79c3eeeb8ff73e8aaffabe05989bb9 (diff) | |
| download | opencode-259858df5fcaecb75ad8cf09c66ac2278a257204.tar.gz opencode-259858df5fcaecb75ad8cf09c66ac2278a257204.zip | |
attempt cache builds
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 14 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba9cb6067..44827cffc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,8 +25,22 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ">=1.23.2" + cache: true + cache-dependency-path: go.sum - run: go mod download + + - name: Cache GoReleaser build + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + dist/ + .goreleaser.cache + key: ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }}-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-build- + - uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08970bd88..347ded9fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,22 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ">=1.23.2" + cache: true + cache-dependency-path: go.sum - run: go mod download + + - name: Restore GoReleaser build cache + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + dist/ + .goreleaser.cache + key: ${{ runner.os }}-go-build-${{ hashFiles('**/*.go') }}-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-build- + - uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser |
