chore: Release Noir(0.19.4) #3178
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: ABI Wasm test | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- master | |
# This will cancel previous runs when a branch or PR is updated | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Setup Nix | |
uses: ./.github/actions/nix | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
nix-cache-name: "noir" | |
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }} | |
- name: Build noirc_abi_wasm | |
run: | | |
nix build -L .#noirc_abi_wasm | |
cp -r ./result/noirc_abi_wasm/nodejs ./tooling/noirc_abi_wasm | |
cp -r ./result/noirc_abi_wasm/web ./tooling/noirc_abi_wasm | |
- name: Dereference symlink | |
run: echo "UPLOAD_PATH=$(readlink -f ./result/noirc_abi_wasm)" >> $GITHUB_ENV | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: noirc_abi_wasm | |
path: ${{ env.UPLOAD_PATH }} | |
retention-days: 10 | |
test: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Download wasm package artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: noirc_abi_wasm | |
path: ./tooling/noirc_abi_wasm | |
- name: Install Yarn dependencies | |
uses: ./.github/actions/setup | |
- name: Run node tests | |
run: yarn workspace @noir-lang/noirc_abi test | |
- name: Install Playwright | |
uses: ./.github/actions/install-playwright | |
- name: Run browser tests | |
run: yarn workspace @noir-lang/noirc_abi test:browser | |