59
59
**/**.go
60
60
go.mod
61
61
go.sum
62
+ .github/workflows/test.yml
62
63
- name : Build
63
64
run : GOOS=linux CGO_ENABLED=1 GOARCH=${{ matrix.goarch }} CC=${{ matrix.gcc }} LEDGER_ENABLED=false make build
64
65
@@ -129,16 +130,23 @@ jobs:
129
130
**/**.go
130
131
go.mod
131
132
go.sum
133
+ .github/workflows/test.yml
132
134
- uses : actions/download-artifact@v3
133
135
with :
134
136
name : " ${{ github.sha }}-${{ matrix.part }}"
135
137
if : env.GIT_DIFF
138
+ - name : install libsodium
139
+ run : |
140
+ make libsodium
141
+ if : env.GIT_DIFF
136
142
- name : test & coverage report creation
137
143
env :
138
144
USE_PRELOAD : 1,4
139
145
SAVE_BRANCH_LAUNCH_DEPTH : 1
146
+ CGO_CFLAGS : " -I${{ github.workspace }}/tools/sodium/linux_amd64/include"
147
+ CGO_LDFLAGS : " -L${{ github.workspace }}/tools/sodium/linux_amd64/lib -lsodium"
140
148
run : |
141
- cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock goleveldb libsodium'
149
+ cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock goleveldb gcc libsodium'
142
150
if : env.GIT_DIFF
143
151
- uses : actions/upload-artifact@v3
144
152
with :
@@ -156,6 +164,7 @@ jobs:
156
164
**/**.go
157
165
go.mod
158
166
go.sum
167
+ .github/workflows/test.yml
159
168
- uses : actions/download-artifact@v3
160
169
with :
161
170
name : " ${{ github.sha }}-00-coverage"
@@ -209,17 +218,24 @@ jobs:
209
218
**/**.go
210
219
go.mod
211
220
go.sum
221
+ .github/workflows/test.yml
212
222
- uses : actions/download-artifact@v3
213
223
with :
214
224
name : " ${{ github.sha }}-${{ matrix.part }}"
215
225
if : env.GIT_DIFF
226
+ - name : install libsodium
227
+ run : |
228
+ make libsodium
229
+ if : env.GIT_DIFF
216
230
- name : test & coverage report creation
217
231
env :
218
232
USE_PREFETCH : NO
219
233
USE_PRELOAD : 1,4
220
234
SAVE_BRANCH_LAUNCH_DEPTH : 1
235
+ CGO_CFLAGS : " -I${{ github.workspace }}/tools/sodium/linux_amd64/include"
236
+ CGO_LDFLAGS : " -L${{ github.workspace }}/tools/sodium/linux_amd64/lib -lsodium"
221
237
run : |
222
- xargs --arg-file=pkgs.txt.part.${{ matrix.part }} go test -mod=readonly -timeout 30m -race -tags='cgo ledger test_ledger_mock goleveldb libsodium'
238
+ xargs --arg-file=pkgs.txt.part.${{ matrix.part }} go test -mod=readonly -timeout 30m -race -tags='cgo ledger test_ledger_mock goleveldb gcc libsodium'
223
239
if : env.GIT_DIFF
224
240
- uses : actions/upload-artifact@v3
225
241
with :
0 commit comments