Commit 34948da 1 parent 227460e commit 34948da Copy full SHA for 34948da
File tree 5 files changed +10
-16
lines changed
5 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 26
26
- name : Set up Go
27
27
uses : actions/setup-go@v4
28
28
with :
29
- go-version : 1.20.3
29
+ go-version : 1.20.4
30
30
31
31
- name : Build all versions
32
32
run : |
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ permissions:
11
11
12
12
jobs :
13
13
build :
14
- strategy :
15
- matrix :
16
- go-version : ["1.20.3"]
17
-
18
14
name : " Build + tests"
19
15
runs-on : ubuntu-latest
20
16
@@ -25,10 +21,10 @@ jobs:
25
21
with :
26
22
fetch-depth : 0
27
23
28
- - name : Set up Go ${{ matrix.go-version }}
24
+ - name : Set up Go
29
25
uses : actions/setup-go@v4
30
26
with :
31
- go-version : ${{ matrix.go-version }}
27
+ go-version : 1.20.4
32
28
33
29
- name : Build
34
30
run : |
Original file line number Diff line number Diff line change 24
24
- name : Set up Go
25
25
uses : actions/setup-go@v4
26
26
with :
27
- go-version : 1.20.3
27
+ go-version : 1.20.4
28
28
29
29
- name : Cache virtualenvs
30
30
id : cache-pipenv
Original file line number Diff line number Diff line change
1
+ BUILD_REQUIRE_GO_MAJOR ?= 1
2
+ BUILD_REQUIRE_GO_MINOR ?= 20
3
+
1
4
GOCMD =go
2
5
GOBUILD =$(GOCMD ) build
3
6
GOTEST =$(GOCMD ) test
@@ -57,7 +60,7 @@ binary: goversion
57
60
$(GOBUILD ) $(LD_OPTS ) $(BUILD_VENDOR_FLAGS ) -o $(BINARY_NAME )
58
61
59
62
.PHONY : build
60
- build : goversion clean binary
63
+ build : clean binary
61
64
62
65
#
63
66
# Unit and integration tests
68
71
golangci-lint run
69
72
70
73
.PHONY : test
71
- test :
74
+ test : goversion
72
75
@$(GOTEST ) $(LD_OPTS ) ./...
73
76
74
77
.PHONY : func-tests
@@ -82,7 +85,7 @@ func-tests: build
82
85
83
86
RELDIR = $(BINARY_NAME ) -$(BUILD_VERSION )
84
87
85
- # Called during release , to reuse the directory for other platforms
88
+ # Called during platform-all , to reuse the directory for other platforms
86
89
.PHONY : clean-release-dir
87
90
clean-release-dir :
88
91
@$(RM ) -r $(RELDIR )
@@ -114,5 +117,4 @@ release: clean tarball
114
117
platform-all : goversion clean
115
118
python3 .github/release.py run-build $(BINARY_NAME )
116
119
117
- # Check if go is the right version
118
120
include mk/goversion.mk
Original file line number Diff line number Diff line change 1
-
2
- BUILD_REQUIRE_GO_MAJOR ?= 1
3
- BUILD_REQUIRE_GO_MINOR ?= 20
4
-
5
1
BUILD_GOVERSION = $(subst go,,$(shell go env GOVERSION) )
6
2
7
3
go_major_minor = $(subst ., ,$(BUILD_GOVERSION ) )
You can’t perform that action at this time.
0 commit comments