diff options
author | Jakob Borg <jakob@kastelo.net> | 2023-06-14 09:37:59 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2023-06-14 09:37:59 +0200 |
commit | d22a38d94762c09b9863a7d720486c678da86faa (patch) | |
tree | 02bc045bbeef61a7f41572e72156ebacacea371b | |
parent | 439fa6c84861cfb22c8faec962302c1f332f705d (diff) |
build: Make sure we get the latest matching Go version
Also, disable caching in setup-go when we do manual cache setup with a
better cache key. It became default-true in the latest action version.
-rw-r--r-- | .github/workflows/build-syncthing.yaml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 27809e5516..95d26c1617 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -5,7 +5,9 @@ on: push: env: - # The go version to use for builds. + # The go version to use for builds. We set check-latest to true when + # installing, so we get the latest patch version that matches the + # expression. GO_VERSION: "^1.20.3" # Optimize compatibility on the slow archictures. @@ -61,6 +63,7 @@ jobs: with: go-version: ${{ matrix.go }} cache: true + check-latest: true - name: Build run: | @@ -83,6 +86,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - name: Check correctness run: | @@ -136,6 +141,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: actions/cache@v3 with: @@ -182,6 +189,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: actions/cache@v3 with: @@ -222,6 +231,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: actions/cache@v3 with: @@ -342,6 +353,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: actions/cache@v3 with: @@ -395,6 +408,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - name: Package source run: | @@ -505,6 +520,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: ruby/setup-ruby@v1 with: @@ -638,6 +655,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} + cache: false + check-latest: true - uses: actions/cache@v3 with: |