14
14
push :
15
15
pull_request :
16
16
17
- # set go version for all steps
18
- env :
19
- GOVERSION : 1.23.x
20
-
21
17
jobs :
22
18
get-version :
23
19
runs-on : ubuntu-latest
49
45
- uses : actions/checkout@v4
50
46
- uses : actions/setup-go@v5
51
47
with :
52
- go-version : ${{ env.GOVERSION }}
48
+ go-version-file : ' ./go.mod '
53
49
- run : make citest
54
50
55
51
59
55
- uses : actions/checkout@v4
60
56
- uses : actions/setup-go@v5
61
57
with :
62
- go-version : ${{ env.GOVERSION }}
58
+ go-version-file : ' ./go.mod '
63
59
- run : |
64
- echo "Testing with ${{ env.GOVERSION }}"
65
60
go work init
66
61
go work use .
67
62
$Env:GOWORK = "off"
75
70
- uses : actions/checkout@v4
76
71
- uses : actions/setup-go@v5
77
72
with :
78
- go-version : ${{ env.GOVERSION }}
73
+ go-version-file : ' ./go.mod '
79
74
- run : make test
80
75
81
76
test-bsd :
@@ -116,7 +111,7 @@ jobs:
116
111
fetch-depth : 0
117
112
- uses : actions/setup-go@v5
118
113
with :
119
- go-version : ${{ env.GOVERSION }}
114
+ go-version-file : ' ./go.mod '
120
115
- run : |
121
116
echo "Building ${{ env.BIN }}"
122
117
GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} make build
@@ -143,7 +138,7 @@ jobs:
143
138
fetch-depth : 0
144
139
- uses : actions/setup-go@v5
145
140
with :
146
- go-version : ${{ env.GOVERSION }}
141
+ go-version-file : ' ./go.mod '
147
142
- run : |
148
143
echo "Building ${{ env.BIN }}"
149
144
GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} make build
@@ -170,7 +165,7 @@ jobs:
170
165
fetch-depth : 0
171
166
- uses : actions/setup-go@v5
172
167
with :
173
- go-version : ${{ env.GOVERSION }}
168
+ go-version-file : ' ./go.mod '
174
169
- run : |
175
170
echo "Building ${{ env.BIN }}.exe"
176
171
rm -rf winres rsrc_windows_*
@@ -245,7 +240,7 @@ jobs:
245
240
- uses : actions/checkout@v4
246
241
- uses : actions/setup-go@v5
247
242
with :
248
- go-version : ${{ env.GOVERSION }}
243
+ go-version-file : ' ./go.mod '
249
244
- run : sudo apt-get update
250
245
- run : sudo apt-get install help2man tofrodos
251
246
- run : |
@@ -266,7 +261,7 @@ jobs:
266
261
- uses : actions/checkout@v4
267
262
- uses : actions/setup-go@v5
268
263
with :
269
- go-version : ${{ env.GOVERSION }}
264
+ go-version-file : ' ./go.mod '
270
265
- run : sudo apt-get update
271
266
- run : sudo apt-get install help2man tofrodos
272
267
- run : |
@@ -360,7 +355,7 @@ jobs:
360
355
- uses : actions/checkout@v4
361
356
- uses : actions/setup-go@v5
362
357
with :
363
- go-version : ${{ env.GOVERSION }}
358
+ go-version-file : ' ./go.mod '
364
359
- uses : actions/download-artifact@v4
365
360
with :
366
361
name : " ${{ env.BIN }}"
@@ -397,7 +392,7 @@ jobs:
397
392
- uses : actions/checkout@v4
398
393
- uses : actions/setup-go@v5
399
394
with :
400
- go-version : ${{ env.GOVERSION }}
395
+ go-version-file : ' ./go.mod '
401
396
- uses : actions/download-artifact@v4
402
397
with :
403
398
name : " ${{ env.BIN }}"
@@ -431,7 +426,7 @@ jobs:
431
426
- uses : actions/checkout@v4
432
427
- uses : actions/setup-go@v5
433
428
with :
434
- go-version : ${{ env.GOVERSION }}
429
+ go-version-file : ' ./go.mod '
435
430
- uses : actions/download-artifact@v4
436
431
with :
437
432
name : " ${{ env.BIN }}"
@@ -484,7 +479,7 @@ jobs:
484
479
- uses : actions/checkout@v4
485
480
- uses : actions/setup-go@v5
486
481
with :
487
- go-version : ${{ env.GOVERSION }}
482
+ go-version-file : ' ./go.mod '
488
483
- uses : actions/download-artifact@v4
489
484
with :
490
485
name : " ${{ env.BIN }}.deb"
@@ -508,7 +503,7 @@ jobs:
508
503
- uses : actions/checkout@v4
509
504
- uses : actions/setup-go@v5
510
505
with :
511
- go-version : ${{ env.GOVERSION }}
506
+ go-version-file : ' ./go.mod '
512
507
- uses : actions/download-artifact@v4
513
508
with :
514
509
name : " ${{ env.BIN }}.pkg"
@@ -532,7 +527,7 @@ jobs:
532
527
- uses : actions/checkout@v4
533
528
- uses : actions/setup-go@v5
534
529
with :
535
- go-version : ${{ env.GOVERSION }}
530
+ go-version-file : ' ./go.mod '
536
531
- uses : actions/download-artifact@v4
537
532
with :
538
533
name : " windist"
0 commit comments