-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move barretenberg to top of repo. Make circuits build off barr…
…etenberg build. (#2221) This moves barretenberg out of circuits project, to the top level of the repo, and cleans up a lot of build-system stuff. ## BB and Circuits * Circuits expects barretenberg to still be where it was before (root of its repo), but it has a symlink now to the top level. * Docker scoping is handled by ingesting barretenberg from prior build, which outputs both the source code, and libraries needed for circuits (libbarretenberg, libenv, libwasi). * Circuits not longer builds barretenberg itself. * barretenberg now does a formatting check over it's code as part of build. `./format.sh check` * Remove some refs to openmp in containers as we're phasing it out.... * Remove some cmake around installing barretenberg, as this isn't needed anymore. ## Build System * Remove hacks around e2e running locally. Use now official `cond_run_script` script. * Remove superfluous scripts and normalise around the `cond_spot_run_script` and `remote_runner` script. * `cond_spot_run_build` and `cond_spot_run_test` both implemented in terms of above. * Now test runs are handled by `remote_runner` they perform a full checkout of code and fit in the general pattern of the build system. No more hacky arbitrary script folder to remote copies. * Added `yarn-project-base` as dep in `build-manifest.json` to all TS projects so rebuilds are correctly computed. * Improved performance of `dependencies` command in `query_manifest` and also `rebuildPatterns`. * `query_manifest` outputs absolute paths by default, meaning can remove various assumptions in other scripts as to current working directory.
- Loading branch information
1 parent
9f1a3a5
commit 404ec34
Showing
1,957 changed files
with
1,285 additions
and
1,613 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ on: | |
branches: | ||
- master | ||
paths: | ||
- 'circuits/cpp/barretenberg/**' | ||
- '!circuits/cpp/barretenberg/.gitrepo' | ||
- "barretenberg/**" | ||
- "!barretenberg/.gitrepo" | ||
|
||
jobs: | ||
build: | ||
|
@@ -23,7 +23,7 @@ jobs: | |
run: | | ||
# we push using git subrepo (https://github.com/ingydotnet/git-subrepo) | ||
# with some logic to recover from squashed parent commits | ||
SUBREPO_PATH=circuits/cpp/barretenberg | ||
SUBREPO_PATH=barretenberg | ||
# identify ourselves, needed to commit | ||
git config --global user.name AztecBot | ||
git config --global user.email [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
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,18 +1,18 @@ | ||
[submodule "legacy-barretenberg-build-system"] | ||
path = circuits/cpp/barretenberg/build-system | ||
path = barretenberg/build-system | ||
url = https://github.com/AztecProtocol/build-system | ||
[submodule "l1-contracts/lib/openzeppelin-contracts"] | ||
path = l1-contracts/lib/openzeppelin-contracts | ||
url = https://github.com/openzeppelin/openzeppelin-contracts | ||
[submodule "l1-contracts/lib/forge-std"] | ||
path = l1-contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "circuits/cpp/barretenberg/sol/lib/forge-std"] | ||
path = circuits/cpp/barretenberg/sol/lib/forge-std | ||
[submodule "barretenberg/sol/lib/forge-std"] | ||
path = barretenberg/sol/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "circuits/cpp/barretenberg/sol/lib/solidity-stringutils"] | ||
path = circuits/cpp/barretenberg/sol/lib/solidity-stringutils | ||
[submodule "barretenberg/sol/lib/solidity-stringutils"] | ||
path = barretenberg/sol/lib/solidity-stringutils | ||
url = https://github.com/Arachnid/solidity-stringutils | ||
[submodule "circuits/cpp/barretenberg/sol/lib/openzeppelin-contracts"] | ||
path = circuits/cpp/barretenberg/sol/lib/openzeppelin-contracts | ||
[submodule "barretenberg/sol/lib/openzeppelin-contracts"] | ||
path = barretenberg/sol/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts |
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,2 +1,2 @@ | ||
/circuits/cpp/barretenberg/ts | ||
/circuits/cpp/barretenberg/foundation | ||
/barretenberg/ts | ||
/barretenberg/foundation |
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,5 +1,5 @@ | ||
{ | ||
".": "0.7.0", | ||
"circuits/cpp/barretenberg": "0.7.0", | ||
"circuits/cpp/barretenberg/ts": "0.7.0" | ||
"barretenberg": "0.7.0", | ||
"barretenberg/ts": "0.7.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.