Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new vote account for timely vote credits #101

Merged
merged 19 commits into from
Oct 10, 2023
82 changes: 38 additions & 44 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- master
env:
SOLANA_CLI_VERSION: 1.14.17
SOLANA_CLI_VERSION: 1.16.16
jobs:
build-and-test:
name: Build and test programs
Expand All @@ -29,14 +29,19 @@ jobs:
~/.cargo/git/db/
./mev-programs/target/
key: cargo-${{ runner.os }}-anchor-${{ hashFiles('**/Cargo.lock') }}
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked --force
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli --locked --force
- name: Install yarn dependencies
working-directory: ./mev-programs
run: yarn
- uses: reinismu/clippy-check@master
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
working-directory: ./mev-programs/programs
token: ${{ secrets.GITHUB_TOKEN }}
toolchain: nightly-2023-04-19-x86_64-unknown-linux-gnu
components: rustfmt, clippy
- name: clippy
working-directory: ./mev-programs
run: cargo +nightly-2023-04-19 clippy
shell: bash

# Build IDLs
- name: Build jito_tip_distribution
Expand All @@ -55,42 +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

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
working-directory: ./mev-programs
files: |
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
26 changes: 13 additions & 13 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.14.17
SOLANA_CLI_VERSION: 1.16.16
jobs:
release:
name: Create the jito programs release
Expand All @@ -27,12 +27,12 @@ jobs:
~/.cargo/git/db/
./mev-programs/target/
key: cargo-${{ runner.os }}-anchor-${{ hashFiles('**/Cargo.lock') }}
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked --force
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli --locked --force
- name: Install yarn dependencies
working-directory: ./mev-programs
run: yarn

# Build IDLs
# Build IDLs + programs
- name: Build jito_tip_distribution
working-directory: ./mev-programs
run: anchor build --idl idl --program-name jito_tip_distribution
Expand All @@ -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
Loading
Loading