aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2024-02-11 09:24:00 +0100
committerGitHub <noreply@github.com>2024-02-11 09:24:00 +0100
commit6b4028eede0fbe1b15313343c227bfcdda420bc1 (patch)
tree6e613c15643f8224763faf83f5b23a969990b598
parentad81ac8da71bad17139ecd6c48eb461d484a5248 (diff)
downloadsyncthing-6b4028eede0fbe1b15313343c227bfcdda420bc1.tar.gz
syncthing-6b4028eede0fbe1b15313343c227bfcdda420bc1.zip
build: Use correct Go version also for script runs (#9414)
The changes to go.mod in latest Go 1.21/1.22 are not fully understood by older Go that might be pre-installed on builds, so make sure we always have a modern one in place even for running small release scripts etc.
-rw-r--r--.github/workflows/build-syncthing.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index 72a60e1a1..eba9709d7 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -506,6 +506,12 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v4
+ - uses: actions/setup-go@v5
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ cache: false
+ check-latest: true
+
- name: Install signing tool
run: |
go install ./cmd/stsigtool
@@ -625,6 +631,12 @@ jobs:
name: packages-signed
path: packages
+ - uses: actions/setup-go@v5
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ cache: false
+ check-latest: true
+
- name: Create release json
run: |
cd packages
@@ -673,6 +685,12 @@ jobs:
name: debian-packages
path: packages
+ - uses: actions/setup-go@v5
+ with:
+ go-version: ${{ env.GO_VERSION }}
+ cache: false
+ check-latest: true
+
- name: Set version
run: |
version=$(go run build.go version)