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