feat: add ios simulator files

This commit is contained in:
Ya-wen, Jeng 2025-01-31 20:14:27 +08:00
parent a7b1aca591
commit 19a2da20c9
15 changed files with 28 additions and 3 deletions

View File

@ -1,2 +1,2 @@
[env]
RUST_WITNESS_LINK_TEST_WITNESS="1"
RUST_RAPIDSNARK_LINK_TEST_WITNESS="1"

View File

@ -29,6 +29,31 @@ jobs:
- name: Check formatting
run: cargo fmt --all -- --check
build-ios:
runs-on: macos-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
target:
- aarch64-apple-ios
- aarch64-apple-ios-sim
- x86_64-apple-ios
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.81.0"
targets: ${{ matrix.target }}
- name: Install Dependencies
run: |
if [[ "${{ matrix.target }}" == "aarch64-apple-ios" || "${{ matrix.target }}" == "aarch64-apple-ios-sim" ]]; then
rustup target add ${{ matrix.target }}
sudo apt update && sudo apt install -y libclang-dev
fi
- name: Build
run: cargo build --target ${{ matrix.target }}
test-linux:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
@ -52,4 +77,4 @@ jobs:
toolchain: "1.81.0"
override: true
- name: Run tests
run: cargo test -vv
run: cargo test

View File

@ -4,7 +4,7 @@ use std::path::Path;
use std::path::PathBuf;
fn main() {
if std::env::var("RUST_WITNESS_LINK_TEST_WITNESS").is_ok() {
if std::env::var("RUST_RAPIDSNARK_LINK_TEST_WITNESS").is_ok() {
rust_witness::transpile::transpile_wasm("./test-vectors".to_string());
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.