diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-05-25 13:56:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 11:56:39 -0600 |
commit | ef0aaca0d6ca3f4aece20e4d97d546e0d48d17fe (patch) | |
tree | 239e55de43ca08b94db28c601276f1b91712c2fb /.github/workflows/cross-build.yml | |
parent | 6891f7f421eac71dac8f8687255ede5189e7eb3a (diff) |
ci: Fix build caching on Windows (#4811)
* ci: Fix build caching on Windows
I was getting tired of Windows being slow as molasses in our CI jobs, so I went to look at our trusty source of github actions + golang information, and found a somewhat recent commit that actually fixed it. See https://github.com/mvdan/github-actions-golang/commit/4b754729baa709da219a5889c459010d4eda1888
I'll do a 2nd empty commit to re-trigger CI shortly to confirm that it actually fixes it.
* Retrigger CI
Diffstat (limited to '.github/workflows/cross-build.yml')
-rw-r--r-- | .github/workflows/cross-build.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/cross-build.yml b/.github/workflows/cross-build.yml index 3ac9548..f37dc85 100644 --- a/.github/workflows/cross-build.yml +++ b/.github/workflows/cross-build.yml @@ -42,12 +42,16 @@ jobs: go env printf "\n\nSystem environment:\n\n" env - echo "::set-output name=go_cache::$(go env GOCACHE)" - name: Cache the build cache uses: actions/cache@v2 with: - path: ${{ steps.vars.outputs.go_cache }} + # In order: + # * Module download cache + # * Build cache (Linux) + path: | + ~/go/pkg/mod + ~/.cache/go-build key: cross-build-go${{ matrix.go }}-${{ matrix.goos }}-${{ hashFiles('**/go.sum') }} restore-keys: | cross-build-go${{ matrix.go }}-${{ matrix.goos }} |