mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
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.
This commit is contained in:
parent
ad81ac8da7
commit
6b4028eede
18
.github/workflows/build-syncthing.yaml
vendored
18
.github/workflows/build-syncthing.yaml
vendored
@ -506,6 +506,12 @@ jobs:
|
|||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
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
|
- name: Install signing tool
|
||||||
run: |
|
run: |
|
||||||
go install ./cmd/stsigtool
|
go install ./cmd/stsigtool
|
||||||
@ -625,6 +631,12 @@ jobs:
|
|||||||
name: packages-signed
|
name: packages-signed
|
||||||
path: packages
|
path: packages
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
cache: false
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Create release json
|
- name: Create release json
|
||||||
run: |
|
run: |
|
||||||
cd packages
|
cd packages
|
||||||
@ -673,6 +685,12 @@ jobs:
|
|||||||
name: debian-packages
|
name: debian-packages
|
||||||
path: packages
|
path: packages
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
cache: false
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: |
|
run: |
|
||||||
version=$(go run build.go version)
|
version=$(go run build.go version)
|
||||||
|
Loading…
Reference in New Issue
Block a user