refactor: divide proof operations to subroutines #891
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: ci-wrapper-wasm | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
build_test: | |
name: Build & Test WASM Wrapper | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./wrappers/wasm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1 | |
# Needed to resolve any private git based dependencies like https://github.com/mattrglobal/blstrs | |
- name: Setup SSH Agent | |
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # pin@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.6 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run yarn install | |
run: yarn install --frozen-lockfile | |
- name: Run yarn setup | |
run: yarn setup | |
- name: Run yarn build | |
run: yarn build | |
- name: Run yarn test | |
run: yarn test | |
- name: Run yarn benchmark | |
run: yarn benchmark | |
publish_unstable: | |
name: Publish unstable package release | |
needs: build_test | |
runs-on: ubuntu-latest | |
if: "github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release): publish')" | |
defaults: | |
run: | |
working-directory: ./wrappers/wasm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1 | |
# Needed to resolve any private git based dependencies like https://github.com/mattrglobal/blstrs | |
- name: Setup SSH Agent | |
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # pin@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.6 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
# Required for publishing NPM package | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
registry-url: "https://registry.npmjs.org" | |
- name: Run yarn install | |
run: yarn install --frozen-lockfile | |
- name: Run yarn setup | |
run: yarn setup | |
- name: Run yarn build | |
run: yarn build | |
- name: Configure NPM JS User | |
run: | | |
git config user.name "Mattr CI" | |
git config user.email "npmjs_ci_mattr_public@mattr.global" | |
npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
- name: Publish unstable build | |
run: yarn publish:unstable | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
publish_release: | |
name: Publish package release | |
needs: build_test | |
runs-on: ubuntu-latest | |
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'chore(release): publish')" | |
defaults: | |
run: | |
working-directory: ./wrappers/wasm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1 | |
# Needed to resolve any private git based dependencies like https://github.com/mattrglobal/blstrs | |
- name: Setup SSH Agent | |
uses: webfactory/ssh-agent@836c84ec59a0e7bc0eabc79988384eb567561ee2 # pin@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.6 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
# Required for publishing NPM package | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
registry-url: "https://registry.npmjs.org" | |
- name: Run yarn install | |
run: yarn install --frozen-lockfile | |
- name: Run yarn setup | |
run: yarn setup | |
- name: Run yarn build | |
run: yarn build | |
- name: Configure NPM JS User | |
run: | | |
git config user.name "Mattr CI" | |
git config user.email "npmjs_ci_mattr_public@mattr.global" | |
npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
- name: Publish release build | |
run: yarn publish:release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} |