-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git subrepo pull --force circuits/cpp/barretenberg
subrepo: subdir: "circuits/cpp/barretenberg" merged: "c5c2934ac" upstream: origin: "https://github.com/AztecProtocol/barretenberg" branch: "master" commit: "c5c2934ac" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
- Loading branch information
Showing
27 changed files
with
543 additions
and
1,086 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,18 +1,6 @@ | ||
[submodule "legacy-barretenberg-build-system"] | ||
path = circuits/cpp/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 | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "circuits/cpp/barretenberg/sol/lib/solidity-stringutils"] | ||
path = circuits/cpp/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 | ||
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 |
---|---|---|
|
@@ -28,86 +28,67 @@ jobs: | |
needs: [release-please] | ||
if: ${{ needs.release-please.outputs.tag-name }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install bleeding edge cmake | ||
run: | | ||
sudo apt -y remove --purge cmake | ||
sudo snap install cmake --classic | ||
- name: Create Build Environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install clang ninja-build yarn | ||
- name: Install yarn | ||
run: | | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
sudo apt -y update && sudo apt -y install yarn | ||
- name: Compile Barretenberg | ||
run: | | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install bleeding edge cmake | ||
run: | | ||
sudo apt -y remove --purge cmake | ||
sudo snap install cmake --classic | ||
- name: Create Build Environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install clang ninja-build yarn | ||
- name: Install yarn | ||
run: | | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
sudo apt -y update && sudo apt -y install yarn | ||
- name: Compile Barretenberg | ||
run: | | ||
cd cpp | ||
cmake --preset default -DCMAKE_BUILD_TYPE=RelWithAssert | ||
cmake --build --preset default --target bb | ||
- name: Install WASI-SDK | ||
run: | | ||
cd cpp | ||
cmake --preset default -DCMAKE_BUILD_TYPE=RelWithAssert | ||
cmake --build --preset default --target bb | ||
- name: Install WASI-SDK | ||
run: | | ||
cd cpp | ||
./scripts/install-wasi-sdk.sh | ||
- name: Compile Typescript | ||
run: | | ||
cd ts | ||
yarn install && yarn && yarn build | ||
- name: Checkout destination repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: AztecProtocol/dev-bb.js | ||
path: ./dev-bb.js | ||
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | ||
|
||
- name: Push to destination repository | ||
run: | | ||
cd ./dev-bb.js | ||
cp -R ../ts/dest/* . | ||
git config --global user.name AztecBot | ||
git config --global user.email [email protected] | ||
git checkout -b dev || git checkout dev | ||
git add . | ||
git commit -m "Tracking changes" | ||
git push origin dev | ||
- name: Tar and GZip barretenberg.wasm | ||
run: tar -cvzf barretenberg.wasm.tar.gz cpp/build-wasm/bin/barretenberg.wasm | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Deploy Typescript to NPM | ||
run: | | ||
cd ts | ||
yarn deploy | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: Tar and GZip bb Binary (Ubuntu) | ||
run: tar -cvzf bb-ubuntu.tar.gz cpp/build/bin/bb | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
- name: Compile Typescript | ||
run: | | ||
cd ts | ||
yarn install && yarn && yarn build | ||
- name: Tar and GZip barretenberg.wasm | ||
run: tar -cvzf barretenberg.wasm.tar.gz cpp/build-wasm/bin/barretenberg.wasm | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Deploy Typescript to NPM | ||
run: | | ||
cd ts | ||
yarn deploy | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: Tar and GZip bb Binary (Ubuntu) | ||
run: tar -cvzf bb-ubuntu.tar.gz cpp/build/bin/bb | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-linux-wasm | ||
path: | | ||
barretenberg.wasm.tar.gz | ||
bb-ubuntu.tar.gz | ||
build-mac: | ||
name: Build on Mac | ||
runs-on: macos-13 | ||
|
@@ -116,31 +97,36 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# We need clang 14.0.3 or higher, as lower versions do not seem | ||
# to be spec conformant. In particular std::span does not seem | ||
# to follow the specifications. | ||
# We need clang 14.0.3 or higher, as lower versions do not seem | ||
# to be spec conformant. In particular std::span does not seem | ||
# to follow the specifications. | ||
- name: Select Xcode version | ||
run: | | ||
sudo xcode-select -switch /Applications/Xcode_14.3.1.app | ||
sudo xcode-select -switch /Applications/Xcode_14.3.1.app | ||
- name: Create Mac Build Environment | ||
run: | | ||
brew install cmake ninja | ||
- name: Compile Barretenberg | ||
working-directory: cpp | ||
run: | | ||
cd cpp | ||
cmake --preset default -DCMAKE_BUILD_TYPE=RelWithAssert | ||
cmake --build --preset default --target bb | ||
- name: Package barretenberg artifact | ||
working-directory: cpp/build/bin | ||
run: | | ||
mkdir dist | ||
cp ./bb ./dist/bb | ||
7z a -ttar -so -an ./dist/* | 7z a -si ./barretenberg-x86_64-apple-darwin.tar.gz | ||
- name: Tar bb binary (Mac) | ||
run: tar -cvzf bb-mac.tar.gz cpp/build/bin/bb | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-mac | ||
path: bb-mac.tar.gz | ||
name: barretenberg-x86_64-apple-darwin | ||
path: ./cpp/build/bin/barretenberg-x86_64-apple-darwin.tar.gz | ||
retention-days: 3 | ||
|
||
release: | ||
name: Publish | ||
|
@@ -151,12 +137,12 @@ jobs: | |
uses: actions/download-artifact@v2 | ||
with: | ||
name: release-linux-wasm | ||
|
||
- name: Download files from Mac Runner | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: release-mac | ||
|
||
name: barretenberg-x86_64-apple-darwin | ||
- name: Publish to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
|
@@ -165,4 +151,4 @@ jobs: | |
files: | | ||
barretenberg.wasm.tar.gz | ||
bb-ubuntu.tar.gz | ||
bb-mac.tar.gz | ||
barretenberg-x86_64-apple-darwin.tar.gz |
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 +1 @@ | ||
{".":"0.3.4","ts":"0.3.4"} | ||
{".":"0.3.6","ts":"0.3.6"} |
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 +1 @@ | ||
v0.3.4 x-release-please-version | ||
v0.3.6 x-release-please-version |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[package] | ||
name = "" | ||
authors = [""] | ||
compiler_version = "0.6.0" | ||
|
||
|
Oops, something went wrong.