Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sync with main noir repo #3939

Merged
merged 4 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions noir/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Dockerfile*
.dockerignore

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

packages
**/package.tgz
**/target
Expand Down
5 changes: 5 additions & 0 deletions noir/.github/scripts/acvm_js-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

.github/scripts/install_wasm-bindgen.sh
yarn workspace @noir-lang/acvm_js build
5 changes: 5 additions & 0 deletions noir/.github/scripts/acvm_js-test-browser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

npx playwright install && npx playwright install-deps
yarn workspace @noir-lang/acvm_js test:browser
4 changes: 4 additions & 0 deletions noir/.github/scripts/acvm_js-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/acvm_js test
4 changes: 4 additions & 0 deletions noir/.github/scripts/backend-barretenberg-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/backend_barretenberg build
4 changes: 4 additions & 0 deletions noir/.github/scripts/backend-barretenberg-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/backend_barretenberg test
5 changes: 5 additions & 0 deletions noir/.github/scripts/install_wasm-bindgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo-binstall wasm-bindgen-cli --version 0.2.86 -y
6 changes: 6 additions & 0 deletions noir/.github/scripts/integration-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -eu

apt-get install libc++-dev -y
npx playwright install && npx playwright install-deps
yarn workspace integration-tests test
8 changes: 8 additions & 0 deletions noir/.github/scripts/nargo-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -eu

export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(git rev-parse --verify HEAD)

cargo build --release
10 changes: 10 additions & 0 deletions noir/.github/scripts/nargo-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -eu

apt-get install -y curl libc++-dev

export SOURCE_DATE_EPOCH=$(date +%s)
export GIT_DIRTY=false
export GIT_COMMIT=$(git rev-parse --verify HEAD)

cargo test --workspace --locked --release
4 changes: 4 additions & 0 deletions noir/.github/scripts/noir-codegen-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/noir_codegen build
4 changes: 4 additions & 0 deletions noir/.github/scripts/noir-codegen-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/noir_codegen test
4 changes: 4 additions & 0 deletions noir/.github/scripts/noir-js-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/noir_js build
6 changes: 6 additions & 0 deletions noir/.github/scripts/noir-js-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -eu

./scripts/nargo_compile_noir_js_assert_lt.sh
rm -rf /usr/src/noir/tooling/noir_js/test/noir_compiled_examples/assert_lt/target/debug_assert_lt.json
yarn workspace @noir-lang/noir_js test
4 changes: 4 additions & 0 deletions noir/.github/scripts/noir-js-types-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/types build
5 changes: 5 additions & 0 deletions noir/.github/scripts/noir-wasm-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

.github/scripts/install_wasm-bindgen.sh
yarn workspace @noir-lang/noir_wasm build
6 changes: 6 additions & 0 deletions noir/.github/scripts/noir-wasm-test-browser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -eu

./scripts/nargo_compile_wasm_fixtures.sh
npx playwright install && npx playwright install-deps
yarn workspace @noir-lang/noir_wasm test:browser
7 changes: 7 additions & 0 deletions noir/.github/scripts/noir-wasm-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -eu

./scripts/nargo_compile_wasm_fixtures.sh
yarn workspace @noir-lang/noir_wasm test:node
npx playwright install && npx playwright install-deps
yarn workspace @noir-lang/noir_wasm test:browser
5 changes: 5 additions & 0 deletions noir/.github/scripts/noirc-abi-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

.github/scripts/install_wasm-bindgen.sh
yarn workspace @noir-lang/noirc_abi build
5 changes: 5 additions & 0 deletions noir/.github/scripts/noirc-abi-test-browser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eu

npx playwright install && npx playwright install-deps
yarn workspace @noir-lang/noirc_abi test:browser
4 changes: 4 additions & 0 deletions noir/.github/scripts/noirc-abi-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

yarn workspace @noir-lang/noirc_abi test
Loading