-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gd/issue_6457
- Loading branch information
Showing
374 changed files
with
20,788 additions
and
3,830 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 @@ | ||
58761fcf181d0a26c4e387105b1bc8a3a75b0368 | ||
0577c1a70e9746bd06f07d2813af1be39e01ca02 |
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Report Peak Memory | ||
|
||
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 | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nargo | ||
path: ./dist/* | ||
retention-days: 3 | ||
|
||
generate_memory_report: | ||
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 Memory report | ||
working-directory: ./test_programs | ||
run: | | ||
chmod +x memory_report.sh | ||
./memory_report.sh | ||
mv memory_report.json ../memory_report.json | ||
- name: Parse memory report | ||
id: memory_report | ||
uses: noir-lang/noir-bench-report@ccb0d806a91d3bd86dba0ba3d580a814eed5673c | ||
with: | ||
report: memory_report.json | ||
header: | | ||
# Memory Report | ||
memory_report: true | ||
|
||
- name: Add memory report to sticky comment | ||
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: memory | ||
message: ${{ steps.memory_report.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 |
---|---|---|
|
@@ -478,6 +478,9 @@ jobs: | |
|
||
- name: Install Foundry | ||
uses: foundry-rs/[email protected] | ||
with: | ||
version: nightly-8660e5b941fe7f4d67e246cfd3dafea330fb53b1 | ||
|
||
|
||
- name: Install `bb` | ||
run: | | ||
|
@@ -516,12 +519,25 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
project: | ||
# Disabled as these are currently failing with many visibility errors | ||
- { repo: AztecProtocol/aztec-nr, path: ./ } | ||
- { repo: noir-lang/ec, path: ./ } | ||
- { repo: noir-lang/eddsa, path: ./ } | ||
- { repo: noir-lang/mimc, path: ./ } | ||
- { repo: noir-lang/noir_sort, path: ./ } | ||
- { repo: noir-lang/noir-edwards, path: ./ } | ||
- { repo: noir-lang/noir-bignum, path: ./ } | ||
- { repo: noir-lang/noir_bigcurve, path: ./ } | ||
- { repo: noir-lang/noir_base64, path: ./ } | ||
- { repo: noir-lang/noir_string_search, path: ./ } | ||
- { repo: noir-lang/sparse_array, path: ./ } | ||
- { repo: noir-lang/noir_rsa, path: ./lib } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/aztec-nr } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-contracts } | ||
# Disabled as aztec-packages requires a setup-step in order to generate a `Nargo.toml` | ||
#- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits } | ||
- { repo: noir-lang/noir-edwards, path: ./, ref: 3188ea74fe3b059219a2ea87899589c266256d74 } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits/crates/parity-lib } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits/crates/private-kernel-lib } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits/crates/reset-kernel-lib } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits/crates/rollup-lib } | ||
- { repo: AztecProtocol/aztec-packages, path: ./noir-projects/noir-protocol-circuits/crates/types } | ||
|
||
name: Check external repo - ${{ matrix.project.repo }} | ||
steps: | ||
- name: Checkout | ||
|
@@ -551,9 +567,12 @@ jobs: | |
# Github actions seems to not expand "**" in globs by default. | ||
shopt -s globstar | ||
sed -i '/^compiler_version/d' ./**/Nargo.toml | ||
- name: Run nargo check | ||
- name: Run nargo test | ||
working-directory: ./test-repo/${{ matrix.project.path }} | ||
run: nargo check | ||
run: nargo test --silence-warnings | ||
env: | ||
NARGO_IGNORE_TEST_FAILURES_FROM_FOREIGN_CALLS: true | ||
|
||
# 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. | ||
|
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,3 +1,3 @@ | ||
{ | ||
".": "0.39.0" | ||
".": "1.0.0-beta.0" | ||
} |
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.