30
30
- run :
31
31
command : make go-lint
32
32
33
+ build_and_test_aarch64_linux_cgo_bindings :
34
+ machine :
35
+ image : ubuntu-2004:current
36
+ resource_class : arm.large
37
+ working_directory : ~/go/src/github.com/filecoin-project/filecoin-ffi
38
+ steps :
39
+ - configure_environment_variables
40
+ - prepare
41
+ - build_project
42
+ - restore_parameter_cache
43
+ - obtain_filecoin_parameters
44
+ - save_parameter_cache
45
+ - run : cd rust && rustup target add wasm32-unknown-unknown
46
+
33
47
build_and_test_linux_cgo_bindings :
34
48
parameters :
35
49
run_leak_detector :
@@ -68,12 +82,20 @@ jobs:
68
82
- run : cd rust && cargo install cargo-lipo
69
83
- build_project
70
84
- compile_tests
71
- publish_linux_staticlib :
85
+ publish_linux_x86_64_staticlib :
72
86
executor : golang
73
87
steps :
74
88
- configure_environment_variables
75
89
- prepare
76
90
- publish_release
91
+ publish_linux_aarch64_staticlib :
92
+ machine :
93
+ image : ubuntu-2004:current
94
+ resource_class : arm.large
95
+ steps :
96
+ - configure_environment_variables
97
+ - prepare
98
+ - publish_release
77
99
publish_darwin_staticlib :
78
100
macos :
79
101
xcode : " 12.5.1"
@@ -167,7 +189,9 @@ workflows:
167
189
- go_lint
168
190
- build_and_test_linux_cgo_bindings :
169
191
run_leak_detector : false
170
- - publish_linux_staticlib
192
+ - build_and_test_aarch64_linux_cgo_bindings
193
+ - publish_linux_x86_64_staticlib
194
+ - publish_linux_aarch64_staticlib
171
195
- build_darwin_cgo_bindings
172
196
- publish_darwin_staticlib
173
197
@@ -221,8 +245,8 @@ commands:
221
245
command : |
222
246
cd rust
223
247
224
- TARBALL_PATH="/tmp/${CIRCLE_PROJECT_REPONAME}-$(uname)-standard.tar.gz"
225
- RELEASE_NAME="${CIRCLE_PROJECT_REPONAME}-$(uname)-standard"
248
+ TARBALL_PATH="/tmp/${CIRCLE_PROJECT_REPONAME}-$(uname)-$(uname -m)- standard.tar.gz"
249
+ RELEASE_NAME="${CIRCLE_PROJECT_REPONAME}-$(uname)-$(uname -m)- standard"
226
250
227
251
# Note: the blst dependency uses the portable configuration for maximum compatibility
228
252
./scripts/build-release.sh filcrypto $(cat ./rust-toolchain) build --verbose --no-default-features --features multicore-sdr,opencl,blst-portable
@@ -233,7 +257,7 @@ commands:
233
257
command : |
234
258
cd rust
235
259
236
- TARBALL_PATH="/tmp/${CIRCLE_PROJECT_REPONAME}-$(uname)-optimized.tar.gz"
260
+ TARBALL_PATH="/tmp/${CIRCLE_PROJECT_REPONAME}-$(uname)-$(uname -m)- optimized.tar.gz"
237
261
RUSTFLAGS="-C target-feature=$(cat rustc-target-features-optimized.json | jq -r '.[].rustc_target_feature' | tr '\n' ',')"
238
262
239
263
./scripts/build-release.sh filcrypto $(cat ./rust-toolchain) build --verbose --no-default-features --features multicore-sdr,opencl
0 commit comments