-
Notifications
You must be signed in to change notification settings - Fork 18
50 lines (47 loc) · 1.71 KB
/
halo2-browser-tests.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
name: halo2-browser Tests
on:
push:
paths:
- "halo2-wasm/**"
- "halo2-lib-js/**"
jobs:
halo2-wasm-tests:
runs-on: ubuntu-latest-64core-256ram
steps:
- uses: actions/checkout@v3
- name: Build halo2-wasm
working-directory: halo2-wasm
run: |
rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu
cargo build --target=x86_64-unknown-linux-gnu --verbose
- name: Test halo2-wasm
working-directory: halo2-wasm
run: cargo test --target=x86_64-unknown-linux-gnu
halo2-lib-js-tests:
runs-on: ubuntu-latest-64core-256ram
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Set all packages to local and build
working-directory: ./
run: ./scripts/toggleLocal.sh ci
# - name: Build halo2-wasm
# working-directory: halo2-wasm
# run: |
# rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu
# rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu
# cargo build --target=x86_64-unknown-linux-gnu --verbose
# - name: Build halo2-lib-js
# working-directory: halo2-lib-js
# run: |
# npm install
# npm add @axiom-crypto/[email protected]
- name: Test halo2-lib-js/halo2-wasm VK equivalence
working-directory: halo2-lib-js
run: npm run test:vk
- name: Test halo2-lib-js constant equivalence
working-directory: halo2-lib-js
run: npm run test:constant