Skip to content

Commit

Permalink
ci: CI fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarth committed Dec 7, 2023
1 parent 4d22dfd commit 1b02d5b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ env:
CARGO_TERM_COLOR: always

jobs:
# TODO: Add a job to run clippy
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check mopro-core formatting
- name: Check ark-zkey formatting
run: cd ark-zkey/ && cargo fmt --all -- --check
- name: Check mopro-core formatting
run: cd mopro-core/ && cargo fmt --all -- --check
Expand Down Expand Up @@ -48,7 +49,8 @@ jobs:
run: ./scripts/build_android.sh arm64 debug

test-core:
needs: setup-ubuntu
# NOTE: This needs build-android because of cargo build step, we can optimize this later
needs: build-android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -71,6 +73,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run core tests
# TODO: Fix this custom jar thing
run: |
cd mopro-ffi/
curl -L https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar -o target/jna-5.13.0.jar
Expand Down
9 changes: 9 additions & 0 deletions scripts/build_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ else
exit 1
fi

# TODO: Deduplicate this with build-ios?
# build circom circuits in mopro-core
cd ${PROJECT_DIR}/mopro-core
if [[ "$BUILD_MODE" == "debug" ]]; then
cargo build
elif [[ "$BUILD_MODE" == "release" ]]; then
cargo build --release
fi

cd ${PROJECT_DIR}/mopro-ffi

# Print appropriate message based on device type
Expand Down

0 comments on commit 1b02d5b

Please sign in to comment.