Skip to content

Commit

Permalink
fix: add target check, fix ci device type
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianjeng committed Feb 1, 2024
1 parent 261abce commit 9226e3f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions config-ci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# config-example.toml

[build]
# For iOS device_type can be x86_64, simulator, device
# For Android device_type can be x86_64, arm, arm64
device_type = "x86_64" # Options: x86_64, simulator, device, arm, arm64

# debug is for Rust library to be in debug mode and release for release mode
# We recommend release mode by default for performance
build_mode = "release" # Options: debug, release

[circuit]
dir = "examples/circom/keccak256" # Directory of the circuit
name = "keccak256_256_test" # Name of the circuit

[dylib]
# NOTE: Dylib support is experimental and requires some fiddling in iOS
# See https://github.com/oskarth/mopro/pull/37 and https://github.com/oskarth/mopro/pull/38
use_dylib = false # Options: true, false
name = "keccak256.dylib" # Name of the dylib file, only used if use_dylib is true
2 changes: 1 addition & 1 deletion scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ print_action "[core/circom] Generating arkzkey for rsa..."
print_action "[ffi] Adding support for target architectures..."
cd ${PROJECT_DIR}/mopro-ffi

for target in x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim; do
for target in x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android; do
if ! check_target_support $target; then
rustup target add $target
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ download_files "rsa" "main"
print_action "[ffi] Adding support for target architectures..."
cd ${PROJECT_DIR}/mopro-ffi

for target in x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim; do
for target in x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android; do
if ! check_target_support $target; then
rustup target add $target
else
Expand Down

0 comments on commit 9226e3f

Please sign in to comment.