-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1 changes] feat: Consider block parameters in variable liveness (noi…
…r-lang/noir#5097) chore(docs): Link to evmdiff for supported EVM chains (noir-lang/noir#5107) chore: Avoid creating witness for simple multiplications (noir-lang/noir#5100) feat: Add intrinsic to get if running inside an unconstrained context (noir-lang/noir#5098) chore: Move turbofish changes to the elaborator (noir-lang/noir#5094) fix: Apply self type from generic trait constraint before instantiating identifiers (noir-lang/noir#5087) chore: reactivate gates report (noir-lang/noir#5084) chore: automatically clear any unwanted directories in `test_programs` (noir-lang/noir#5081) chore: update `nargo info` table to remove circuit size column feat: Activate return_data in ACIR opcodes (noir-lang/noir#5080) fix: Use plain integer addresses for opcodes in DAP disassembly view (noir-lang/noir#4941) chore(experimental): Elaborate globals (noir-lang/noir#5069) chore(experimental): Add types and traits to the elaborator (noir-lang/noir#5066) feat: remove conditional compilation of `bn254_blackbox_solver` (noir-lang/noir#5058) chore: use `bbup` to install `bb` (noir-lang/noir#5073) feat: Sync from aztec-packages (noir-lang/noir#5070) chore: update docs to represent zksync supporting necessary precompiles (noir-lang/noir#5071) feat(stdlib)!: eddsa function using turbofish (noir-lang/noir#5050) fix(frontend): Correctly monomorphize turbofish functions (noir-lang/noir#5049)
- Loading branch information
Showing
85 changed files
with
1,514 additions
and
700 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 |
---|---|---|
@@ -1 +1 @@ | ||
89846cfbc4961c5258d91b5973f027be80885a20 | ||
e4eb5f539f377fd3c2e1a874707ffce62a5bc10a |
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 |
---|---|---|
@@ -1,88 +1,94 @@ | ||
# name: Report gates diff | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
|
||
# jobs: | ||
# build-nargo: | ||
# runs-on: ubuntu-latest | ||
# 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@v4 | ||
# with: | ||
# name: nargo | ||
# path: ./dist/* | ||
# retention-days: 3 | ||
|
||
|
||
# compare_gas_reports: | ||
# needs: [build-nargo] | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# pull-requests: write | ||
|
||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - name: Download nargo binary | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: nargo | ||
# path: ./nargo | ||
|
||
# - name: Set nargo on PATH | ||
# run: | | ||
# nargo_binary="${{ github.workspace }}/nargo/nargo" | ||
# chmod +x $nargo_binary | ||
# echo "$(dirname $nargo_binary)" >> $GITHUB_PATH | ||
# export PATH="$PATH:$(dirname $nargo_binary)" | ||
# nargo -V | ||
|
||
# - name: Generate gates report | ||
# working-directory: ./test_programs | ||
# run: | | ||
# ./gates_report.sh | ||
# mv gates_report.json ../gates_report.json | ||
name: Report gates diff | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build-nargo: | ||
runs-on: ubuntu-latest | ||
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@v4 | ||
with: | ||
name: nargo | ||
path: ./dist/* | ||
retention-days: 3 | ||
|
||
|
||
compare_gates_reports: | ||
needs: [build-nargo] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install `bb` | ||
run: | | ||
./scripts/install_bb.sh | ||
echo "$HOME/.bb/" >> $GITHUB_PATH | ||
- name: Download nargo binary | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nargo | ||
path: ./nargo | ||
|
||
- name: Set nargo on PATH | ||
run: | | ||
nargo_binary="${{ github.workspace }}/nargo/nargo" | ||
chmod +x $nargo_binary | ||
echo "$(dirname $nargo_binary)" >> $GITHUB_PATH | ||
export PATH="$PATH:$(dirname $nargo_binary)" | ||
nargo -V | ||
- name: Generate gates report | ||
working-directory: ./test_programs | ||
run: | | ||
./rebuild.sh | ||
./gates_report.sh | ||
mv gates_report.json ../gates_report.json | ||
# - name: Compare gates reports | ||
# id: gates_diff | ||
# uses: vezenovm/noir-gates-diff@acf12797860f237117e15c0d6e08d64253af52b6 | ||
# with: | ||
# report: gates_report.json | ||
# summaryQuantile: 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%) | ||
|
||
# - name: Add gates diff to sticky comment | ||
# if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
# uses: marocchino/sticky-pull-request-comment@v2 | ||
# with: | ||
# # delete the comment in case changes no longer impact circuit sizes | ||
# delete: ${{ !steps.gates_diff.outputs.markdown }} | ||
# message: ${{ steps.gates_diff.outputs.markdown }} | ||
- name: Compare gates reports | ||
id: gates_diff | ||
uses: vezenovm/noir-gates-diff@acf12797860f237117e15c0d6e08d64253af52b6 | ||
with: | ||
report: gates_report.json | ||
summaryQuantile: 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%) | ||
|
||
- name: Add gates diff to sticky comment | ||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
# delete the comment in case changes no longer impact circuit sizes | ||
delete: ${{ !steps.gates_diff.outputs.markdown }} | ||
message: ${{ steps.gates_diff.outputs.markdown }} |
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 |
---|---|---|
|
@@ -399,10 +399,10 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download bb binary | ||
- name: Install `bb` | ||
run: | | ||
# Adds `bb` to PATH | ||
./scripts/install_bb.sh | ||
echo "$HOME/.bb/" >> $GITHUB_PATH | ||
- name: Download nargo binary | ||
uses: actions/download-artifact@v4 | ||
|
@@ -453,7 +453,7 @@ jobs: | |
test-integration-browser: | ||
name: Integration Tests (Browser) | ||
runs-on: ubuntu-latest | ||
needs: [build-acvm-js, build-noir-wasm, build-nargo, build-noirc-abi] | ||
needs: [build-acvm-js, build-noir-wasm, build-noirc-abi] | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
|
@@ -495,6 +495,46 @@ jobs: | |
run: | | ||
yarn test:browser | ||
test-examples: | ||
name: Example scripts | ||
runs-on: ubuntu-latest | ||
needs: [build-nargo] | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Install `bb` | ||
run: | | ||
./scripts/install_bb.sh | ||
echo "$HOME/.bb/" >> $GITHUB_PATH | ||
- name: Download nargo binary | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nargo | ||
path: ./nargo | ||
|
||
- name: Set nargo on PATH | ||
run: | | ||
nargo_binary="${{ github.workspace }}/nargo/nargo" | ||
chmod +x $nargo_binary | ||
echo "$(dirname $nargo_binary)" >> $GITHUB_PATH | ||
export PATH="$PATH:$(dirname $nargo_binary)" | ||
nargo -V | ||
- name: Run `prove_and_verify` | ||
working-directory: ./examples/prove_and_verify | ||
run: ./test.sh | ||
|
||
- name: Run `codegen_verifier` | ||
working-directory: ./examples/codegen_verifier | ||
run: ./test.sh | ||
|
||
# This is a job which depends on all test jobs and reports the overall status. | ||
# This allows us to add/remove test jobs without having to update the required workflows. | ||
tests-end: | ||
|
@@ -512,6 +552,7 @@ jobs: | |
- test-noir-codegen | ||
- test-integration-node | ||
- test-integration-browser | ||
- test-examples | ||
|
||
steps: | ||
- name: Report overall success | ||
|
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.