Skip to content

Commit

Permalink
ci: Use new toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarth committed Feb 1, 2024
1 parent e231351 commit 261abce
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Prepare CI for iOS
run: ./scripts/prepare_ci.sh
- name: Build for iOS
run: ./scripts/build_ios.sh x86_64 debug
run: ./scripts/build_ios.sh config-example.toml
- name: Run iOS tests
run: |
cd mopro-ios/MoproKit/Example
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Prepare CI for Core and FFI
run: ./scripts/prepare_ci.sh
- name: Build for Android
run: ./scripts/build_android.sh arm64 debug
run: ./scripts/build_android.sh config-example-android.toml
- name: Run core tests
run: cd mopro-core && cargo test -- --nocapture
- name: Run FFI tests
Expand Down
22 changes: 22 additions & 0 deletions config-example-android.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# config-example-android.toml

# Android specific configuration

[build]
# For iOS device_type can be x86_64, simulator, device
# For Android device_type can be x86_64, arm, arm64
device_type = "arm64" # 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 = "debug" # 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

0 comments on commit 261abce

Please sign in to comment.