File tree Expand file tree Collapse file tree 3 files changed +11
-37
lines changed Expand file tree Collapse file tree 3 files changed +11
-37
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
build :
14
14
name : Build and Lint
15
- timeout-minutes : 10
15
+ timeout-minutes : 20
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Set up Go
@@ -33,17 +33,13 @@ jobs:
33
33
go install github.com/golangci/golangci-lint/cmd/[email protected]
34
34
export PATH=$PATH:$(go env GOPATH)/bin
35
35
make
36
- make test
37
- make check
36
+ make container- test
37
+ make container- check
38
38
build-optimizer :
39
39
name : Build optimizer
40
- timeout-minutes : 10
40
+ timeout-minutes : 20
41
41
runs-on : ubuntu-latest
42
42
steps :
43
- - name : Set up Go
44
- uses : actions/setup-go@v3
45
- with :
46
- go-version : " 1.20.1"
47
43
- name : Check out code
48
44
uses : actions/checkout@v3
49
45
- name : cache go mod
@@ -55,19 +51,12 @@ jobs:
55
51
${{ runner.os }}-go
56
52
- name : Build
57
53
run : |
58
- go install github.com/golangci/golangci-lint/cmd/[email protected]
59
- export PATH=$PATH:$(go env GOPATH)/bin
60
- rustup component add rustfmt clippy
61
- make build-optimizer
54
+ make container-build-optimizer
62
55
smoke :
63
56
name : Smoke
64
- timeout-minutes : 10
57
+ timeout-minutes : 20
65
58
runs-on : ubuntu-latest
66
59
steps :
67
- - name : Set up Go
68
- uses : actions/setup-go@v3
69
- with :
70
- go-version : " 1.19.6"
71
60
- name : Check out code
72
61
uses : actions/checkout@v3
73
62
- name : cache go mod
@@ -118,14 +107,10 @@ jobs:
118
107
119
108
coverage :
120
109
name : Code coverage
121
- timeout-minutes : 10
110
+ timeout-minutes : 20
122
111
runs-on : ubuntu-latest
123
112
needs : [build]
124
113
steps :
125
- - name : Install Go
126
- uses : actions/setup-go@v3
127
- with :
128
- go-version : " 1.19.6"
129
114
- name : Checkout code
130
115
uses : actions/checkout@v3
131
116
- name : cache go mod
@@ -136,7 +121,7 @@ jobs:
136
121
restore-keys : |
137
122
${{ runner.os }}-go
138
123
- name : Run unit tests.
139
- run : make cover
124
+ run : make container- cover
140
125
- name : Upload coverage to Codecov
141
126
uses : codecov/codecov-action@v3
142
127
with :
Original file line number Diff line number Diff line change 21
21
run_optimizer :
22
22
runs-on : ubuntu-latest
23
23
steps :
24
- - name : Set up Go
25
- uses : actions/setup-go@v3
26
- with :
27
- go-version : " 1.19.6"
28
24
- name : Checkout repository
29
25
uses : actions/checkout@v3
30
26
- name : cache go mod
66
62
sudo install -D -m 755 misc/example/10-containerd-net.conflist /etc/cni/net.d/10-containerd-net.conflist
67
63
- name : Build and install optimizer
68
64
run : |
69
- rustup component add rustfmt clippy
70
- make optimizer
71
- sudo chown -R $(id -un):$(id -gn) . ~/.cargo/
65
+ make container-optimizer
72
66
pwd
73
67
ls -lh bin/*optimizer*
74
68
sudo make install-optimizer
87
81
echo "count: $count expected minimum value: $expected"
88
82
if [ $count -lt $expected ]; then
89
83
echo "failed to generate accessed files list for nginx:1.23.3"
90
- cat misc/ optimizer/script/file_list.txt
84
+ cat /opt/nri/ optimizer/results/library/nginx:1.23.3
91
85
exit 1
92
86
fi
93
87
cat /opt/nri/optimizer/results/library/nginx:1.23.3.csv
Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : actions/checkout@v3
18
- - uses : actions/setup-go@v3
19
- with :
20
- go-version : " 1.19.6"
21
18
- name : cache go mod
22
19
uses : actions/cache@v3
23
20
with :
39
36
${{ runner.os }}-cargo
40
37
- name : build nydus-snapshotter and optimizer
41
38
run : |
42
- go install github.com/golangci/golangci-lint/cmd/[email protected]
43
- export PATH=$PATH:$(go env GOPATH)/bin
44
- make static-release
39
+ make container-static-release
45
40
- name : upload artifacts
46
41
uses : actions/upload-artifact@v3
47
42
with :
You can’t perform that action at this time.
0 commit comments