diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index df8beb7..85e3df4 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -25,13 +25,14 @@ jobs: - name: Setup Cache uses: actions/cache@v4 - continue-on-error: true - timeout-minutes: 2 if: ${{ !env.ACT }} with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} - restore-keys: ${{ runner.os }}-go- + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Bootstrap run: ./script/bootstrap @@ -55,13 +56,14 @@ jobs: - name: Setup Cache uses: actions/cache@v4 - continue-on-error: true - timeout-minutes: 2 if: ${{ !env.ACT }} with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} - restore-keys: ${{ runner.os }}-go- + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Bootstrap run: ./script/bootstrap @@ -93,13 +95,14 @@ jobs: - name: Setup Cache uses: actions/cache@v4 - continue-on-error: true - timeout-minutes: 2 if: ${{ !env.ACT }} with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} - restore-keys: ${{ runner.os }}-go- + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 54a9c60..99a6874 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,13 +31,14 @@ jobs: - name: Setup Cache uses: actions/cache@v4 - continue-on-error: true - timeout-minutes: 2 if: ${{ !env.ACT }} with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} - restore-keys: ${{ runner.os }}-go- + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6