Skip to content

Merge pull request #888 from privacy-scaling-explorations/chore/linte… #9

Merge pull request #888 from privacy-scaling-explorations/chore/linte…

Merge pull request #888 from privacy-scaling-explorations/chore/linte… #9

Workflow file for this run

name: Circuit
on:
push:
branches: [master, dev]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes \
build-essential \
libgmp-dev \
libsodium-dev \
nasm \
nlohmann-json3-dev
- name: Build maci-circuits package
run: |
npm install
npm run bootstrap
npm run build
- name: Download circom Binary v2.1.6
run: |
wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.6/circom-linux-amd64
chmod +x /home/runner/work/circom
sudo mv /home/runner/work/circom /bin/circom
- name: Build circuits
run: npm run build-test-circuits
working-directory: circuits
- name: Test circuits
run: npm run test
working-directory: circuits