-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1 changes] fix: Ignore no_predicates in brillig functions (noir-lang…
…/noir#5012) chore(experimental): Add compiler option to enable the Elaborator (noir-lang/noir#5003) chore(experimental): Add Elaborator pass (noir-lang/noir#4992)
- Loading branch information
Showing
92 changed files
with
6,464 additions
and
1,993 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 @@ | ||
c49d3a9ded819b828cffdfc031e86614da21e329 | ||
b541e793e20fa3c991e0328ec2ff7926bdcdfd45 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,88 @@ | ||
name: Report gates diff | ||
# name: Report gates diff | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# pull_request: | ||
|
||
jobs: | ||
build-nargo: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64-unknown-linux-gnu] | ||
# jobs: | ||
# build-nargo: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# target: [x86_64-unknown-linux-gnu] | ||
|
||
steps: | ||
- name: Checkout Noir repo | ||
uses: actions/checkout@v4 | ||
# steps: | ||
# - name: Checkout Noir repo | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/rust-toolchain@1.74.1 | ||
# - name: Setup toolchain | ||
# uses: dtolnay/rust-toolchain@1.74.1 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.target }} | ||
cache-on-failure: true | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
# - 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: 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: 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 | ||
# - 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 | ||
# compare_gas_reports: | ||
# needs: [build-nargo] | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- name: Download nargo binary | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nargo | ||
path: ./nargo | ||
# - 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: 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: Generate gates report | ||
# working-directory: ./test_programs | ||
# run: | | ||
# ./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: 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: 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 }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.