Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Dec 19, 2023
1 parent 04a25e7 commit 0aef707
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/build-noir-js-types.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

cd /usr/src/noir
yarn workspace @noir-lang/types build
49 changes: 48 additions & 1 deletion .github/workflows/docker-test-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,35 @@ jobs:
/usr/src/noir/compiler/source-resolver/types
if-no-files-found: error

build-noir-js-types:
name: build noir types
runs-on: ubuntu-latest
needs: [build-base-js, test-noirc-abi]
container:
image: ghcr.io/noir-lang/noir:${{ github.sha }}-js
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: download artifact
uses: actions/download-artifact@v4
with:
name: noirc-abi-wasm
path: |
/usr/src/noir/tooling/noirc_abi_wasm
- name: build
run: |
/usr/src/noir/.github/scripts/build-noir-js-types.sh
- name: artifact
uses: actions/upload-artifact@v4
with:
name: noir-js-types
path: |
/usr/src/noir/tooling/noir_js_types/lib/cjs
/usr/src/noir/tooling/noir_js_types/lib/esm
if-no-files-found: error
compression-level: 0

test-noir-wasm:
name: test noir wasm
runs-on: ubuntu-latest
Expand Down Expand Up @@ -195,17 +224,35 @@ jobs:
- name: test
run: |
/usr/src/noir/.github/scripts/test-noirc-abi.sh
- name: artifact
uses: actions/upload-artifact@v4
with:
name: noirc-abi-wasm
path: |
/usr/src/noir/tooling/noirc_abi_wasm/nodejs
/usr/src/noir/tooling/noirc_abi_wasm/web
/usr/src/noir/tooling/noirc_abi_wasm/target
/usr/src/noir/tooling/noirc_abi_wasm/outputs
/usr/src/noir/tooling/noirc_abi_wasm/result
if-no-files-found: error
compression-level: 0

test-barretenberg-backend:
name: test barretenberg backend
runs-on: ubuntu-latest
needs: [build-base-js, test-noirc-abi]
# needs: [build-base-js, test-noirc-abi]
needs: [build-base-js]
container:
image: ghcr.io/noir-lang/noir:${{ github.sha }}-js
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: download source-resolver
uses: actions/download-artifact@v4
with:
name: noir-js-types
path: /usr/src/noir/tooling/noir_js_types/lib/
- name: test
run: |
/usr/src/noir/.github/scripts/test-backend-barretenberg.sh
Expand Down
4 changes: 0 additions & 4 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ COPY ./tooling/noirc_abi_wasm/package.json ./tooling/noirc_abi_wasm/
COPY ./compiler/wasm/package.json ./compiler/wasm/
# source resolver
COPY ./compiler/source-resolver/package.json ./compiler/source-resolver/

#! Things rely on this
COPY ./tooling/noir_js_types/package.json ./tooling/noir_js_types/

#backend barretenberg
COPY ./tooling/noir_js_backend_barretenberg/package.json ./tooling/noir_js_backend_barretenberg/

COPY ./tooling/noir_js/package.json ./tooling/noir_js/

COPY ./tooling/noir_codegen/package.json ./tooling/noir_codegen/

### NEW ADDED
Expand Down

0 comments on commit 0aef707

Please sign in to comment.