@@ -12,28 +12,28 @@ jobs:
12
12
name : Lint
13
13
runs-on : ubuntu-latest
14
14
steps :
15
+ - uses : actions/checkout@v4
15
16
- name : setup go
16
17
uses : actions/setup-go@v4
17
18
with :
18
- go-version : ${{ env.GO_VERSION }}
19
- - uses : actions/checkout@v4
19
+ go-version-file : go.mod
20
20
- uses : ibiqlik/action-yamllint@v3
21
21
with :
22
22
format : auto
23
23
- uses : golangci/golangci-lint-action@v3
24
24
with :
25
25
args : -v
26
+ skip-cache : true
26
27
build :
27
28
name : Build all linux architectures
28
29
needs : lint
29
30
runs-on : ubuntu-latest
30
31
steps :
32
+ - uses : actions/checkout@v4
31
33
- name : setup go
32
34
uses : actions/setup-go@v4
33
35
with :
34
- go-version : ${{ env.GO_VERSION }}
35
- - uses : actions/checkout@v4
36
-
36
+ go-version-file : go.mod
37
37
- name : Build on all supported architectures
38
38
run : |
39
39
set -e
@@ -53,16 +53,15 @@ jobs:
53
53
sudo apt-get install linux-modules-extra-$(uname -r)
54
54
- name : Install nftables
55
55
run : sudo apt-get install nftables
56
-
56
+ - uses : actions/checkout@v4
57
57
- name : setup go
58
58
uses : actions/setup-go@v4
59
59
with :
60
- go-version : ${{ env.GO_VERSION }}
60
+ go-version-file : go.mod
61
61
- name : Set up Go for root
62
62
run : |
63
63
sudo ln -sf `which go` `sudo which go` || true
64
64
sudo go version
65
- - uses : actions/checkout@v4
66
65
67
66
- name : Install test binaries
68
67
run : |
@@ -85,10 +84,10 @@ jobs:
85
84
needs : build
86
85
runs-on : windows-latest
87
86
steps :
87
+ - uses : actions/checkout@v4
88
88
- name : setup go
89
89
uses : actions/setup-go@v4
90
90
with :
91
- go-version : ${{ env.GO_VERSION }}
92
- - uses : actions/checkout@v4
91
+ go-version-file : go.mod
93
92
- name : test
94
93
run : bash ./test_windows.sh
0 commit comments