forked from zkmopro/gpu-acceleration
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (70 loc) · 1.92 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build, Test, and Lint
on:
push:
branches:
- main
- feat/further-gpu-acceleration
paths-ignore:
- "**/*.md"
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
paths-ignore:
- "**/*.md"
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Lint and Format Check
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Run Clippy (macOS)
run: cargo clippy --all-targets -- -D warnings
- name: Run Clippy (iOS)
run: cargo clippy --all-targets --features "h2c ios-bindings" --no-default-features -- -D warnings
test:
name: Run Tests
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Dependencies
run: rustup target add aarch64-apple-ios
- name: Run Main Tests (Halo2Curves Backend)
env:
RUST_LOG: debug
run: cargo test --release --features "ark h2c ark macos" --no-default-features
build:
name: Build for iOS
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Dependencies
run: rustup target add aarch64-apple-ios
- name: Build for iOS
run: cargo run --release --bin gen_ios_bindings --features "h2c ios-bindings" --no-default-features