From bfd6203fbd805f09bacefeeda25a64e5607a3676 Mon Sep 17 00:00:00 2001 From: ludamad Date: Tue, 8 Aug 2023 13:05:20 -0400 Subject: [PATCH] Revert release-please --- .../.github/workflows/release-please.yml | 70 ++++++++----------- 1 file changed, 30 insertions(+), 40 deletions(-) diff --git a/circuits/cpp/barretenberg/.github/workflows/release-please.yml b/circuits/cpp/barretenberg/.github/workflows/release-please.yml index 551ca35e66f7..79741dff70e6 100644 --- a/circuits/cpp/barretenberg/.github/workflows/release-please.yml +++ b/circuits/cpp/barretenberg/.github/workflows/release-please.yml @@ -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 @@ -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 @@ -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: @@ -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