7
7
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
8
8
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
9
9
steps :
10
- - uses : actions/setup-go@v2
10
+ - name : Set up Go 1.16
11
+ uses : actions/setup-go@v1
11
12
with :
12
- go-version : " 1.15.5 "
13
+ go-version : 1.16
13
14
14
15
- name : Configure git for Private Modules
15
16
env :
93
94
94
95
- name : Setup environment for Solana tests
95
96
run : |
96
- sh -c "$(curl -sSfL https://release.solana.com/v1.7.0 /install)"
97
+ sh -c "$(curl -sSfL https://release.solana.com/v1.7.12 /install)"
97
98
cd $GITHUB_WORKSPACE
98
99
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
99
100
echo ${{ secrets.SOLANA_KEY }} > ~/.config/solana/id.json
@@ -119,10 +120,10 @@ jobs:
119
120
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
120
121
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
121
122
steps :
122
- - name : Set up Go 1.13
123
+ - name : Set up Go 1.16
123
124
uses : actions/setup-go@v1
124
125
with :
125
- go-version : 1.13
126
+ go-version : 1.16
126
127
id : go
127
128
128
129
- name : Configure git for Private Modules
@@ -238,140 +239,140 @@ jobs:
238
239
-fil=true \
239
240
-timeout 1500s
240
241
241
- test-zcash :
242
- runs-on : ubuntu-latest
243
- env :
244
- FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
245
- SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
246
- steps :
247
- - name : Set up Go 1.13
248
- uses : actions/setup-go@v1
249
- with :
250
- go-version : 1.13
251
- id : go
252
-
253
- - name : Configure git for Private Modules
254
- env :
255
- TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
256
- run : git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com"
257
-
258
- - name : Check out code into the Go module directory
259
- uses : actions/checkout@v1
260
- with :
261
- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
262
- submodules : recursive
263
-
264
- - name : Caching modules
265
- uses : actions/cache@v1
266
- with :
267
- path : ~/go/pkg/mod
268
- key : ${{ runner.os }}-go-aw-${{ hashFiles('**/go.sum') }}
269
-
270
- - name : Cache extern dependencies (FFI)
271
- id : cache-extern
272
- uses : actions/cache@v2
273
- env :
274
- cache-name : cache-externs
275
- with :
276
- path : .extern
277
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.FILECOIN_FFI_COMMIT }}-${{ env.SOLANA_FFI_COMMIT }}
278
-
279
- # Remove apt repos that are known to break from time to time
280
- # See https://github.com/actions/virtual-environments/issues/323
281
- - name : Install dependency packages
282
- run : |
283
- for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
284
- sudo apt-get update
285
- sudo apt-get install -y build-essential
286
- sudo apt-get install -y jq mesa-opencl-icd ocl-icd-opencl-dev pkg-config libudev-dev hwloc libhwloc-dev
287
- curl https://sh.rustup.rs -sSf | sh -s -- -y
288
- source $HOME/.cargo/env
289
-
290
- - name : Get dependencies
291
- run : |
292
- export PATH=$PATH:$(go env GOPATH)/bin
293
- source $HOME/.cargo/env
294
- go get -u github.com/onsi/ginkgo/ginkgo
295
- go get -u github.com/onsi/gomega/...
296
- go get -u golang.org/x/lint/golint
297
- go get -u github.com/loongy/covermerge
298
- go get -u github.com/mattn/goveralls
299
- go get -u github.com/xlab/c-for-go
300
-
301
- - name : Install dependencies (Filecoin FFI)
302
- if : steps.cache-extern.outputs.cache-hit != 'true'
303
- run : |
304
- export PATH=$PATH:$(go env GOPATH)/bin
305
- source $HOME/.cargo/env
306
- cd $GITHUB_WORKSPACE
307
- mkdir .extern && cd .extern
308
- git clone https://github.com/filecoin-project/filecoin-ffi.git
309
- cd filecoin-ffi
310
- git checkout ${{ env.FILECOIN_FFI_COMMIT }}
311
- make
312
-
313
- - name : Install dependencies (Solana FFI)
314
- if : steps.cache-extern.outputs.cache-hit != 'true'
315
- run : |
316
- export PATH=$PATH:$(go env GOPATH)/bin
317
- source $HOME/.cargo/env
318
- cd $GITHUB_WORKSPACE/.extern
319
- git clone https://github.com/renproject/solana-ffi.git
320
- cd solana-ffi
321
- git checkout ${{ env.SOLANA_FFI_COMMIT }}
322
- make clean
323
- make
324
-
325
- - name : Run vetting
326
- run : |
327
- export PATH=$PATH:$(go env GOPATH)/bin
328
- source $HOME/.cargo/env
329
- go mod edit -replace=github.com/filecoin-project/filecoin-ffi=./.extern/filecoin-ffi
330
- go mod edit -replace=github.com/renproject/solana-ffi=./.extern/solana-ffi
331
- go vet ./...
332
-
333
- - name : Run linting
334
- run : |
335
- cd $GITHUB_WORKSPACE
336
- export PATH=$PATH:$(go env GOPATH)/bin
337
- go get -u golang.org/x/lint/golint
338
- golint $(go list ./... | grep -v filecoin-ffi)
339
-
340
- - name : Run multichain infrastructure
341
- run : |
342
- cd $GITHUB_WORKSPACE/infra
343
- source .env
344
- docker-compose up -d --build zcash
345
-
346
- - name : Sleep until the nodes are up
347
- uses : jakejarvis/wait-action@master
348
- with :
349
- time : ' 1m'
350
-
351
- - name : Check on docker containers
352
- run : docker ps -a
353
-
354
- - name : Run tests and report test coverage
355
- env :
356
- COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
357
- run : |
358
- export PATH=$PATH:$(go env GOPATH)/bin
359
- source ./infra/.env
360
- cd $GITHUB_WORKSPACE
361
- go test \
362
- -zec=true \
363
- -timeout 1500s
242
+ # test-zcash:
243
+ # runs-on: ubuntu-latest
244
+ # env:
245
+ # FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
246
+ # SOLANA_FFI_COMMIT: 1428533377eb4ce00e81d04a53bad92f5339db00
247
+ # steps:
248
+ # - name: Set up Go 1.16
249
+ # uses: actions/setup-go@v1
250
+ # with:
251
+ # go-version: 1.16
252
+ # id: go
253
+ #
254
+ # - name: Configure git for Private Modules
255
+ # env:
256
+ # TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
257
+ # run: git config --global url."https://roynalnaruto:${TOKEN}@github.com".insteadOf "https://github.com"
258
+ #
259
+ # - name: Check out code into the Go module directory
260
+ # uses: actions/checkout@v1
261
+ # with:
262
+ # token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
263
+ # submodules: recursive
264
+ #
265
+ # - name: Caching modules
266
+ # uses: actions/cache@v1
267
+ # with:
268
+ # path: ~/go/pkg/mod
269
+ # key: ${{ runner.os }}-go-aw-${{ hashFiles('**/go.sum') }}
270
+ #
271
+ # - name: Cache extern dependencies (FFI)
272
+ # id: cache-extern
273
+ # uses: actions/cache@v2
274
+ # env:
275
+ # cache-name: cache-externs
276
+ # with:
277
+ # path: .extern
278
+ # key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.FILECOIN_FFI_COMMIT }}-${{ env.SOLANA_FFI_COMMIT }}
279
+ #
280
+ # # Remove apt repos that are known to break from time to time
281
+ # # See https://github.com/actions/virtual-environments/issues/323
282
+ # - name: Install dependency packages
283
+ # run: |
284
+ # for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
285
+ # sudo apt-get update
286
+ # sudo apt-get install -y build-essential
287
+ # sudo apt-get install -y jq mesa-opencl-icd ocl-icd-opencl-dev pkg-config libudev-dev hwloc libhwloc-dev
288
+ # curl https://sh.rustup.rs -sSf | sh -s -- -y
289
+ # source $HOME/.cargo/env
290
+ #
291
+ # - name: Get dependencies
292
+ # run: |
293
+ # export PATH=$PATH:$(go env GOPATH)/bin
294
+ # source $HOME/.cargo/env
295
+ # go get -u github.com/onsi/ginkgo/ginkgo
296
+ # go get -u github.com/onsi/gomega/...
297
+ # go get -u golang.org/x/lint/golint
298
+ # go get -u github.com/loongy/covermerge
299
+ # go get -u github.com/mattn/goveralls
300
+ # go get -u github.com/xlab/c-for-go
301
+ #
302
+ # - name: Install dependencies (Filecoin FFI)
303
+ # if: steps.cache-extern.outputs.cache-hit != 'true'
304
+ # run: |
305
+ # export PATH=$PATH:$(go env GOPATH)/bin
306
+ # source $HOME/.cargo/env
307
+ # cd $GITHUB_WORKSPACE
308
+ # mkdir .extern && cd .extern
309
+ # git clone https://github.com/filecoin-project/filecoin-ffi.git
310
+ # cd filecoin-ffi
311
+ # git checkout ${{ env.FILECOIN_FFI_COMMIT }}
312
+ # make
313
+ #
314
+ # - name: Install dependencies (Solana FFI)
315
+ # if: steps.cache-extern.outputs.cache-hit != 'true'
316
+ # run: |
317
+ # export PATH=$PATH:$(go env GOPATH)/bin
318
+ # source $HOME/.cargo/env
319
+ # cd $GITHUB_WORKSPACE/.extern
320
+ # git clone https://github.com/renproject/solana-ffi.git
321
+ # cd solana-ffi
322
+ # git checkout ${{ env.SOLANA_FFI_COMMIT }}
323
+ # make clean
324
+ # make
325
+ #
326
+ # - name: Run vetting
327
+ # run: |
328
+ # export PATH=$PATH:$(go env GOPATH)/bin
329
+ # source $HOME/.cargo/env
330
+ # go mod edit -replace=github.com/filecoin-project/filecoin-ffi=./.extern/filecoin-ffi
331
+ # go mod edit -replace=github.com/renproject/solana-ffi=./.extern/solana-ffi
332
+ # go vet ./...
333
+ #
334
+ # - name: Run linting
335
+ # run: |
336
+ # cd $GITHUB_WORKSPACE
337
+ # export PATH=$PATH:$(go env GOPATH)/bin
338
+ # go get -u golang.org/x/lint/golint
339
+ # golint $(go list ./... | grep -v filecoin-ffi)
340
+ #
341
+ # - name: Run multichain infrastructure
342
+ # run: |
343
+ # cd $GITHUB_WORKSPACE/infra
344
+ # source .env
345
+ # docker-compose up -d --build zcash
346
+ #
347
+ # - name: Sleep until the nodes are up
348
+ # uses: jakejarvis/wait-action@master
349
+ # with:
350
+ # time: '1m'
351
+ #
352
+ # - name: Check on docker containers
353
+ # run: docker ps -a
354
+ #
355
+ # - name: Run tests and report test coverage
356
+ # env:
357
+ # COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
358
+ # run: |
359
+ # export PATH=$PATH:$(go env GOPATH)/bin
360
+ # source ./infra/.env
361
+ # cd $GITHUB_WORKSPACE
362
+ # go test \
363
+ # -zec=true \
364
+ # -timeout 1500s
364
365
365
366
test-terra :
366
367
runs-on : ubuntu-latest
367
368
env :
368
369
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
369
370
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
370
371
steps :
371
- - name : Set up Go 1.13
372
+ - name : Set up Go 1.16
372
373
uses : actions/setup-go@v1
373
374
with :
374
- go-version : 1.13
375
+ go-version : 1.16
375
376
id : go
376
377
377
378
- name : Configure git for Private Modules
@@ -492,10 +493,10 @@ jobs:
492
493
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
493
494
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
494
495
steps :
495
- - name : Set up Go 1.13
496
+ - name : Set up Go 1.16
496
497
uses : actions/setup-go@v1
497
498
with :
498
- go-version : 1.13
499
+ go-version : 1.16
499
500
id : go
500
501
501
502
- name : Configure git for Private Modules
@@ -616,10 +617,10 @@ jobs:
616
617
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
617
618
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
618
619
steps :
619
- - name : Set up Go 1.13
620
+ - name : Set up Go 1.16
620
621
uses : actions/setup-go@v1
621
622
with :
622
- go-version : 1.13
623
+ go-version : 1.16
623
624
id : go
624
625
625
626
- name : Configure git for Private Modules
@@ -742,10 +743,10 @@ jobs:
742
743
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
743
744
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
744
745
steps :
745
- - name : Set up Go 1.13
746
+ - name : Set up Go 1.16
746
747
uses : actions/setup-go@v1
747
748
with :
748
- go-version : 1.13
749
+ go-version : 1.16
749
750
id : go
750
751
751
752
- name : Configure git for Private Modules
@@ -865,10 +866,10 @@ jobs:
865
866
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
866
867
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
867
868
steps :
868
- - name : Set up Go 1.13
869
+ - name : Set up Go 1.16
869
870
uses : actions/setup-go@v1
870
871
with :
871
- go-version : 1.13
872
+ go-version : 1.16
872
873
id : go
873
874
874
875
- name : Configure git for Private Modules
@@ -988,10 +989,10 @@ jobs:
988
989
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
989
990
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
990
991
steps :
991
- - name : Set up Go 1.13
992
+ - name : Set up Go 1.16
992
993
uses : actions/setup-go@v1
993
994
with :
994
- go-version : 1.13
995
+ go-version : 1.16
995
996
id : go
996
997
997
998
- name : Configure git for Private Modules
@@ -1111,10 +1112,10 @@ jobs:
1111
1112
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
1112
1113
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
1113
1114
steps :
1114
- - name : Set up Go 1.13
1115
+ - name : Set up Go 1.16
1115
1116
uses : actions/setup-go@v1
1116
1117
with :
1117
- go-version : 1.13
1118
+ go-version : 1.16
1118
1119
id : go
1119
1120
1120
1121
- name : Configure git for Private Modules
@@ -1234,10 +1235,10 @@ jobs:
1234
1235
FILECOIN_FFI_COMMIT : 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
1235
1236
SOLANA_FFI_COMMIT : 1428533377eb4ce00e81d04a53bad92f5339db00
1236
1237
steps :
1237
- - name : Set up Go 1.13
1238
+ - name : Set up Go 1.16
1238
1239
uses : actions/setup-go@v1
1239
1240
with :
1240
- go-version : 1.13
1241
+ go-version : 1.16
1241
1242
id : go
1242
1243
1243
1244
- name : Configure git for Private Modules
0 commit comments