Skip to content

Commit

Permalink
Add verified build (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Oct 20, 2023
1 parent 4a94859 commit f3f5f95
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 11 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3f5f95

Please sign in to comment.