Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup script #20

Merged
merged 12 commits into from
Oct 2, 2023
2 changes: 1 addition & 1 deletion .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Clone Mina monorepo
run: sh ../evm_bridge/scripts/preinstall.sh
run: cd .. && sh setup.sh

- name: Run cargo check
run: cargo check --workspace
Expand Down
2 changes: 1 addition & 1 deletion evm_bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"buildw": "tsc --watch",
"coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"format": "prettier --write --ignore-unknown **/*",
"preinstall": "sh scripts/preinstall.sh",
"preinstall": "cd .. && sh setup.sh",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"testw": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
"lint": "npx eslint src/* --fix"
Expand Down
3 changes: 2 additions & 1 deletion evm_bridge/scripts/preinstall.sh → setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cd ..
git clone https://github.com/lambdaclass/mina_monorepo.git
cd mina_monorepo
git checkout develop
opam install dune -y
opam switch import opam.export -y
cd src/lib/snarkyjs
npm run bindings
npm run build
Loading