@@ -77,11 +77,17 @@ jobs:
77
77
go install github.com/golangci/golangci-lint/cmd/[email protected]
78
78
make go-lint
79
79
cgo-bindings :
80
- name : Build and test CGO bindings (${{ matrix.runner }})
81
- runs-on : ${{ matrix.runner }}
80
+ name : Build and test CGO bindings (${{ matrix.runner.name }})
81
+ runs-on : ${{ matrix.runner.machine }}
82
82
strategy :
83
83
matrix :
84
- runner : ['ubuntu-latest', ["self-hosted", "linux", "arm64", "xlarge"], 'macos-latest']
84
+ runner :
85
+ - name : " linux-x86_64"
86
+ machine : ["self-hosted", "linux", "x64", "4xlarge"]
87
+ - name : " linux-arm64"
88
+ machine : ["self-hosted", "linux", "arm64", "4xlarge"]
89
+ - name : " macos-latest"
90
+ machine : ' macos-latest'
85
91
fail-fast : false
86
92
steps :
87
93
- run : echo "Running on $RUNNER_OS $RUNNER_ARCH"
@@ -124,9 +130,9 @@ jobs:
124
130
- if : github.event.inputs.run-leak-detector == 'true'
125
131
run : make cgo-leakdetect
126
132
- if : runner.os == 'Linux'
127
- run : cd rust && FIL_PROOFS_PARAMETER_CACHE="${GITHUB_WORKSPACE}/filecoin-proof-parameters/" RUST_LOG=info cargo test --all --release -- --test-threads 1 && cd ..
133
+ run : cd rust && FIL_PROOFS_PARAMETER_CACHE="${GITHUB_WORKSPACE}/filecoin-proof-parameters/" RUST_LOG=info cargo test --all --release && cd ..
128
134
- if : runner.os == 'Linux'
129
- run : GOEXPERIMENT=cgocheck2 RUST_LOG=info go test -p 1 - timeout 60m
135
+ run : GOEXPERIMENT=cgocheck2 RUST_LOG=info go test -timeout 60m
130
136
- if : runner.os == 'macOS'
131
137
name : Build project and tests, but don't actually run the tests (used to verify that build/link works with Darwin)
132
138
run : GOEXPERIMENT=cgocheck2 RUST_LOG=info go test -run=^$
0 commit comments