traitify groups and support bn254/grumpkin #109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
jobs: | |
check-toy-example-wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: nalinbhardwaj/circom | |
ref: pasta | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --path circom | |
- run: sudo apt-get install -y nlohmann-json3-dev nasm | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: bash ./examples/toy/compile.sh | |
- run: cargo run --release --example toy_wasm | |
check-toy-example-cpp: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: nalinbhardwaj/circom | |
ref: pasta | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: install | |
args: --path circom | |
- run: sudo apt-get install -y nlohmann-json3-dev nasm | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: bash ./examples/toy/compile.sh | |
- run: cargo run --release --example toy | |
check-toy-example-browser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2022-08-09 | |
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- uses: actions/checkout@v3 | |
- run: rustup component add rust-src --toolchain nightly-2022-08-09-x86_64-unknown-linux-gnu | |
- run: cd browser-test && wasm-pack build --target web --out-dir test-client/public/pkg | |
- run: cd browser-test/test-client && yarn install && CI=false yarn build |