From f3f5f95a5add58235f9d4154b635e3c0dc4ff2a5 Mon Sep 17 00:00:00 2001 From: buffalu <85544055+buffalu@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:47:56 -0500 Subject: [PATCH] Add verified build (#107) --- .github/workflows/build.yaml | 56 +++++++++++++++++----------------- .github/workflows/release.yaml | 22 ++++++------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f6330d1..570728f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -60,31 +60,31 @@ jobs: - name: Check for diff run: git diff --exit-code -# verified-build: -# name: Build Verifiable Artifact -# runs-on: big-runner-1 -# steps: -# - name: Checkout -# uses: actions/checkout@v3 -# -# # --force because the cargo cache has it saved -# - name: Install Solana Verify -# run: | -# cargo install solana-verify --force -# solana-verify --version -# -# - name: Verifiable Build -# working-directory: ./mev-programs -# run: | -# solana-verify build --library-name jito_tip_distribution -# solana-verify build --library-name jito_tip_payment -# -# - name: Upload Artifact -# uses: actions/upload-artifact@v3 -# with: -# name: build -# path: | -# mev-programs/target/deploy/jito_tip_distribution.so -# mev-programs/target/deploy/jito_tip_payment.so -# mev-programs/target/idl/jito_tip_distribution.json -# mev-programs/target/idl/jito_tip_payment.json + verified-build: + name: Build Verifiable Artifact + runs-on: big-runner-1 + steps: + - name: Checkout + uses: actions/checkout@v3 + + # --force because the cargo cache has it saved + - name: Install Solana Verify + run: | + cargo install solana-verify --force + solana-verify --version + + - name: Verifiable Build + working-directory: ./mev-programs + run: | + solana-verify build --library-name jito_tip_distribution + solana-verify build --library-name jito_tip_payment + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: build + path: | + mev-programs/target/deploy/jito_tip_distribution.so + mev-programs/target/deploy/jito_tip_payment.so + mev-programs/target/idl/jito_tip_distribution.json + mev-programs/target/idl/jito_tip_payment.json diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a446a76..f131647 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,7 +5,7 @@ on: - 'v*' env: - SOLANA_CLI_VERSION: 1.16.16 + SOLANA_CLI_VERSION: 1.16.17 jobs: release: name: Create the jito programs release @@ -47,16 +47,16 @@ jobs: # Verified build # --force because the cargo cache has it saved - # - name: Install Solana Verify - # run: | - # cargo install solana-verify --force - # solana-verify --version - # - # - name: Verifiable Build - # working-directory: ./mev-programs - # run: | - # solana-verify build --library-name jito_tip_distribution - # solana-verify build --library-name jito_tip_payment + - name: Install Solana Verify + run: | + cargo install solana-verify --force + solana-verify --version + + - name: Verifiable Build + working-directory: ./mev-programs + run: | + solana-verify build --library-name jito_tip_distribution + solana-verify build --library-name jito_tip_payment # Make sure no uncommitted changes - name: Check for diff