-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge branch 'noir-lang:master' into feat-implement-integer-printing
Showing
32 changed files
with
471 additions
and
134 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
if: needs.add_label.outputs.has_label == 'true' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
|
@@ -71,24 +71,8 @@ jobs: | |
run: | | ||
npm i wasm-opt -g | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build acvm_js | ||
run: yarn workspace @noir-lang/acvm_js build | ||
|
||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js_types | ||
run: yarn workspace @noir-lang/types build | ||
|
||
- name: Build barretenberg wrapper | ||
run: yarn workspace @noir-lang/backend_barretenberg build | ||
|
||
- name: Run noir_js | ||
run: | | ||
yarn workspace @noir-lang/noir_js build | ||
- name: Install Yarn dependencies | ||
uses: ./.github/actions/setup | ||
|
||
- name: Remove pre-releases | ||
working-directory: docs | ||
|
@@ -97,8 +81,9 @@ jobs: | |
run: yarn setStable | ||
|
||
- name: Build docs | ||
working-directory: docs | ||
run: | ||
yarn workspace docs build | ||
yarn workspaces foreach -Rt run build | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: noir_codegen | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-nargo: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
target: [x86_64-unknown-linux-gnu] | ||
|
||
steps: | ||
- name: Checkout Noir repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.target }} | ||
cache-on-failure: true | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
||
- name: Build Nargo | ||
run: cargo build --package nargo_cli --release | ||
|
||
- name: Package artifacts | ||
run: | | ||
mkdir dist | ||
cp ./target/release/nargo ./dist/nargo | ||
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-unknown-linux-gnu.tar.gz | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nargo | ||
path: ./dist/* | ||
retention-days: 3 | ||
|
||
test: | ||
needs: [build-nargo] | ||
name: Test noir_codegen | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Yarn dependencies | ||
uses: ./.github/actions/setup | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/[email protected] | ||
with: | ||
targets: wasm32-unknown-unknown | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: wasm32-unknown-unknown-noir-js | ||
cache-on-failure: true | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Install wasm-bindgen-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install wasm-opt | ||
run: | | ||
npm i wasm-opt -g | ||
- name: Build acvm_js | ||
run: yarn workspace @noir-lang/acvm_js build | ||
|
||
- name: Build noirc_abi | ||
run: yarn workspace @noir-lang/noirc_abi build | ||
|
||
- name: Build noir_js_types | ||
run: yarn workspace @noir-lang/types build | ||
|
||
- name: Build noir_js | ||
run: yarn workspace @noir-lang/noir_js build | ||
|
||
- name: Run noir_codegen tests | ||
run: yarn workspace @noir-lang/noir_codegen test |
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
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
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
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
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
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
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
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
Oops, something went wrong.