File tree 9 files changed +32
-132
lines changed
9 files changed +32
-132
lines changed Original file line number Diff line number Diff line change @@ -27,28 +27,17 @@ jobs:
27
27
sudo chmod +w /etc/machine-id
28
28
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
29
29
30
- - name : " Set up Go ${{ matrix.go-version }}"
31
- uses : actions/setup-go@v3
32
- with :
33
- go-version : ${{ matrix.go-version }}
34
-
35
30
- name : " Check out CrowdSec repository"
36
31
uses : actions/checkout@v3
37
32
with :
38
33
fetch-depth : 0
39
34
submodules : true
40
35
41
- - name : Cache Go modules
42
- uses : actions/cache@v3
36
+ - name : " Set up Go ${{ matrix.go-version }} "
37
+ uses : actions/setup-go@v4
43
38
with :
44
- path : |
45
- ~/go/pkg/mod
46
- ~/.cache/go-build
47
- ~/Library/Caches/go-build
48
- %LocalAppData%\go-build
49
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
50
- restore-keys : |
51
- ${{ runner.os }}-${{ matrix.go-version }}-go-
39
+ go-version : ${{ matrix.go-version }}
40
+ cache-dependency-path : " **/go.sum"
52
41
53
42
- name : " Install bats dependencies"
54
43
env :
Original file line number Diff line number Diff line change @@ -34,28 +34,17 @@ jobs:
34
34
sudo chmod +w /etc/machine-id
35
35
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
36
36
37
- - name : " Set up Go ${{ matrix.go-version }}"
38
- uses : actions/setup-go@v3
39
- with :
40
- go-version : ${{ matrix.go-version }}
41
-
42
37
- name : " Check out CrowdSec repository"
43
38
uses : actions/checkout@v3
44
39
with :
45
40
fetch-depth : 0
46
41
submodules : true
47
42
48
- - name : Cache Go modules
49
- uses : actions/cache@v3
43
+ - name : " Set up Go ${{ matrix.go-version }} "
44
+ uses : actions/setup-go@v4
50
45
with :
51
- path : |
52
- ~/go/pkg/mod
53
- ~/.cache/go-build
54
- ~/Library/Caches/go-build
55
- %LocalAppData%\go-build
56
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
57
- restore-keys : |
58
- ${{ runner.os }}-${{ matrix.go-version }}-go-
46
+ go-version : ${{ matrix.go-version }}
47
+ cache-dependency-path : " **/go.sum"
59
48
60
49
- name : " Install bats dependencies"
61
50
env :
Original file line number Diff line number Diff line change @@ -35,28 +35,17 @@ jobs:
35
35
sudo chmod +w /etc/machine-id
36
36
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
37
37
38
- - name : " Set up Go ${{ matrix.go-version }}"
39
- uses : actions/setup-go@v3
40
- with :
41
- go-version : ${{ matrix.go-version }}
42
-
43
38
- name : " Check out CrowdSec repository"
44
39
uses : actions/checkout@v3
45
40
with :
46
41
fetch-depth : 0
47
42
submodules : true
48
43
49
- - name : Cache Go modules
50
- uses : actions/cache@v3
44
+ - name : " Set up Go ${{ matrix.go-version }} "
45
+ uses : actions/setup-go@v4
51
46
with :
52
- path : |
53
- ~/go/pkg/mod
54
- ~/.cache/go-build
55
- ~/Library/Caches/go-build
56
- %LocalAppData%\go-build
57
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
58
- restore-keys : |
59
- ${{ runner.os }}-${{ matrix.go-version }}-go-
47
+ go-version : ${{ matrix.go-version }}
48
+ cache-dependency-path : " **/go.sum"
60
49
61
50
- name : " Install bats dependencies"
62
51
env :
Original file line number Diff line number Diff line change @@ -24,28 +24,17 @@ jobs:
24
24
sudo chmod +w /etc/machine-id
25
25
echo githubciXXXXXXXXXXXXXXXXXXXXXXXX | sudo tee /etc/machine-id
26
26
27
- - name : " Set up Go ${{ matrix.go-version }}"
28
- uses : actions/setup-go@v3
29
- with :
30
- go-version : ${{ matrix.go-version }}
31
-
32
27
- name : " Check out CrowdSec repository"
33
28
uses : actions/checkout@v3
34
29
with :
35
30
fetch-depth : 0
36
31
submodules : true
37
32
38
- - name : Cache Go modules
39
- uses : actions/cache@v3
33
+ - name : " Set up Go ${{ matrix.go-version }} "
34
+ uses : actions/setup-go@v4
40
35
with :
41
- path : |
42
- ~/go/pkg/mod
43
- ~/.cache/go-build
44
- ~/Library/Caches/go-build
45
- %LocalAppData%\go-build
46
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
47
- restore-keys : |
48
- ${{ runner.os }}-${{ matrix.go-version }}-go-
36
+ go-version : ${{ matrix.go-version }}
37
+ cache-dependency-path : " **/go.sum"
49
38
50
39
- name : " Install bats dependencies"
51
40
env :
Original file line number Diff line number Diff line change @@ -30,28 +30,17 @@ jobs:
30
30
31
31
steps :
32
32
33
- - name : " Set up Go ${{ matrix.go-version }}"
34
- uses : actions/setup-go@v3
35
- with :
36
- go-version : ${{ matrix.go-version }}
37
-
38
33
- name : Check out code into the Go module directory
39
34
uses : actions/checkout@v3
40
35
with :
41
36
fetch-depth : 0
42
37
submodules : false
43
38
44
- - name : Cache Go modules
45
- uses : actions/cache@v3
39
+ - name : " Set up Go ${{ matrix.go-version }} "
40
+ uses : actions/setup-go@v4
46
41
with :
47
- path : |
48
- ~/go/pkg/mod
49
- ~/.cache/go-build
50
- ~/Library/Caches/go-build
51
- %LocalAppData%\go-build
52
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
53
- restore-keys : |
54
- ${{ runner.os }}-${{ matrix.go-version }}-go-
42
+ go-version : ${{ matrix.go-version }}
43
+ cache-dependency-path : " **/go.sum"
55
44
56
45
- name : Build
57
46
run : make windows_installer BUILD_RE2_WASM=1
Original file line number Diff line number Diff line change 30
30
with :
31
31
config : .github/buildkit.toml
32
32
33
- # - name: "Build flavor: full"
34
- # uses: docker/build-push-action@v4
35
- # with:
36
- # context: .
37
- # file: ./Dockerfile
38
- # tags: crowdsecurity/crowdsec:test
39
- # target: full
40
- # platforms: linux/amd64
41
- # load: true
42
- # cache-from: type=gha
43
- # cache-to: type=gha,mode=min
44
-
45
33
- name : " Build flavor: slim"
46
34
uses : docker/build-push-action@v4
47
35
with :
Original file line number Diff line number Diff line change @@ -29,28 +29,17 @@ jobs:
29
29
30
30
steps :
31
31
32
- - name : " Set up Go ${{ matrix.go-version }}"
33
- uses : actions/setup-go@v3
34
- with :
35
- go-version : ${{ matrix.go-version }}
36
-
37
32
- name : Check out CrowdSec repository
38
33
uses : actions/checkout@v3
39
34
with :
40
35
fetch-depth : 0
41
36
submodules : false
42
37
43
- - name : Cache Go modules
44
- uses : actions/cache@v3
38
+ - name : " Set up Go ${{ matrix.go-version }} "
39
+ uses : actions/setup-go@v4
45
40
with :
46
- path : |
47
- ~/go/pkg/mod
48
- ~/.cache/go-build
49
- ~/Library/Caches/go-build
50
- %LocalAppData%\go-build
51
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
52
- restore-keys : |
53
- ${{ runner.os }}-${{ matrix.go-version }}-go-
41
+ go-version : ${{ matrix.go-version }}
42
+ cache-dependency-path : " **/go.sum"
54
43
55
44
- name : Build
56
45
run : |
Original file line number Diff line number Diff line change @@ -110,28 +110,17 @@ jobs:
110
110
111
111
steps :
112
112
113
- - name : " Set up Go ${{ matrix.go-version }}"
114
- uses : actions/setup-go@v3
115
- with :
116
- go-version : ${{ matrix.go-version }}
117
-
118
113
- name : Check out CrowdSec repository
119
114
uses : actions/checkout@v3
120
115
with :
121
116
fetch-depth : 0
122
117
submodules : false
123
118
124
- - name : Cache Go modules
125
- uses : actions/cache@v3
119
+ - name : " Set up Go ${{ matrix.go-version }} "
120
+ uses : actions/setup-go@v4
126
121
with :
127
- path : |
128
- ~/go/pkg/mod
129
- ~/.cache/go-build
130
- ~/Library/Caches/go-build
131
- %LocalAppData%\go-build
132
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
133
- restore-keys : |
134
- ${{ runner.os }}-${{ matrix.go-version }}-go-
122
+ go-version : ${{ matrix.go-version }}
123
+ cache-dependency-path : " **/go.sum"
135
124
136
125
- name : Build and run tests, static
137
126
run : |
Original file line number Diff line number Diff line change @@ -20,28 +20,17 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
23
- - name : " Set up Go ${{ matrix.go-version }}"
24
- uses : actions/setup-go@v3
25
- with :
26
- go-version : ${{ matrix.go-version }}
27
-
28
23
- name : Check out code into the Go module directory
29
24
uses : actions/checkout@v3
30
25
with :
31
26
fetch-depth : 0
32
27
submodules : false
33
28
34
- - name : Cache Go modules
35
- uses : actions/cache@v3
29
+ - name : " Set up Go ${{ matrix.go-version }} "
30
+ uses : actions/setup-go@v4
36
31
with :
37
- path : |
38
- ~/go/pkg/mod
39
- ~/.cache/go-build
40
- ~/Library/Caches/go-build
41
- %LocalAppData%\go-build
42
- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
43
- restore-keys : |
44
- ${{ runner.os }}-${{ matrix.go-version }}-go-
32
+ go-version : ${{ matrix.go-version }}
33
+ cache-dependency-path : " **/go.sum"
45
34
46
35
- name : Build the binaries
47
36
run : |
You can’t perform that action at this time.
0 commit comments