Skip to content

Commit

Permalink
Revert release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Aug 8, 2023
1 parent b4236ba commit bfd6203
Showing 1 changed file with 30 additions and 40 deletions.
70 changes: 30 additions & 40 deletions circuits/cpp/barretenberg/.github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,25 @@ jobs:
needs: [release-please]
if: ${{ needs.release-please.outputs.tag-name }}
steps:
- 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: |
- 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: |
cd cpp
cmake --preset default -DCMAKE_BUILD_TYPE=RelWithAssert
Expand Down Expand Up @@ -134,24 +128,19 @@ jobs:
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: Upload artifact
uses: actions/upload-artifact@v3
- name: Tar bb binary (Mac)
run: tar -cvzf bb-mac.tar.gz cpp/build/bin/bb

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: barretenberg-x86_64-apple-darwin
path: ./cpp/build/bin/dist/*
retention-days: 3
name: release-mac
path: bb-mac.tar.gz

release:
name: Publish
Expand All @@ -166,7 +155,8 @@ jobs:
- name: Download files from Mac Runner
uses: actions/download-artifact@v2
with:
name: barretenberg-x86_64-apple-darwin.tar.gz
name: release-mac

- name: Publish to GitHub
uses: softprops/action-gh-release@v1
with:
Expand All @@ -175,4 +165,4 @@ jobs:
files: |
barretenberg.wasm.tar.gz
bb-ubuntu.tar.gz
barretenberg-x86_64-apple-darwin.tar.gz
bb-mac.tar.gz

0 comments on commit bfd6203

Please sign in to comment.