Skip to content

Commit

Permalink
chore: use upload and download pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Oct 12, 2023
1 parent 337b1c8 commit 660af10
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions .github/workflows/publish-es-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
run: |
nix build -L .#noir_wasm
- uses: actions/upload-artifact@v3
with:
name: noir_wasm
path: |
result/noir_wasm/nodejs
result/noir_wasm/web
build-noirc_abi_wasm:
runs-on: ubuntu-latest
steps:
Expand All @@ -63,6 +70,13 @@ jobs:
run: |
nix build -L .#noirc_abi_wasm
- uses: actions/upload-artifact@v3
with:
name: noirc_abi_wasm
path: |
result/noirc_abi_wasm/nodejs
result/noirc_abi_wasm/web
build-acvm_js:
runs-on: ubuntu-latest
steps:
Expand All @@ -86,23 +100,43 @@ jobs:
- name: Build wasm package
run: |
nix build -L .#acvm_js
- uses: actions/upload-artifact@v3
with:
name: acvm_js
path: |
result/acvm_js/nodejs
result/acvm_js/web
publish-es-packages:
runs-on: ubuntu-latest
needs: [build-acvm_js, build-noirc_abi_wasm, build-noir_wasm]
steps:

- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ inputs.noir-ref }}

- name: Setup Nix
uses: ./.github/actions/nix
- uses: actions/download-artifact@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
nix-cache-name: ${{ vars.NIX_CACHE_NAME }}
cachix-auth-token: ${{ secrets.CACHIXAUTHTOKEN }}
name: acvm_js
path: acvm-repo/acvm_js
- uses: actions/download-artifact@v3
with:
name: noir_wasm
path: compiler/wasm
- uses: actions/download-artifact@v3
with:
name: noirc_abi_wasm
path: tooling/noirc_abi_wasm

- name: List contents
run: |
ls -R acvm-repo/acvm_js
ls -R compiler/wasm
ls -R tooling/noirc_abi_wasm
- name: Install Yarn dependencies
run: yarn install

Expand All @@ -112,7 +146,7 @@ jobs:
echo $'\n'"default = [\"aztec\"]"$'\n' >> compiler/noirc_frontend/Cargo.toml
- name: Build ES Packages
run: yarn prepare:publish
run: yarn build:js:only

- name: Prepare nightly version
if: ${{ inputs.npm-tag != 'latest' }}
Expand Down

0 comments on commit 660af10

Please sign in to comment.