docs(docs): 📝 Add basic usage guide #65
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: Rust | |
on: | |
push: | |
branches: | |
- '!master' | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Clone and Install Circom | |
run: | | |
git clone https://github.com/iden3/circom.git | |
cd circom | |
export RUSTFLAGS='-A noop-method-call' | |
cargo install --path circom | |
- name: Install SnarkJS | |
run: | | |
npm install -g snarkjs | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Build Project | |
run: | | |
cargo build | |
- name: Run Tests | |
run: | | |
cargo test |