Skip to content

Commit

Permalink
Merge branch 'master' into jl/update_snapshot_dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jedleggett authored Jan 3, 2024
2 parents 6f04470 + 28520ea commit 145648a
Show file tree
Hide file tree
Showing 23 changed files with 1,435 additions and 809 deletions.
26 changes: 10 additions & 16 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 Down Expand Up @@ -83,14 +88,3 @@ jobs:
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
6 changes: 3 additions & 3 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.17
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 Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4.0
FROM rust:1.66.0-slim-bullseye as builder
FROM rust:1.72.1-slim-bullseye as builder

RUN set -x \
&& apt-get -qq update \
Expand All @@ -13,11 +13,11 @@ RUN set -x \
zlib1g-dev \
curl

RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.16.17/install)"

ENV PATH="/root/.local/share/solana/install/active_release/bin:$PATH"

RUN cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
RUN cargo install --git https://github.com/coral-xyz/anchor --tag v0.28.0 anchor-cli --locked

WORKDIR /jito-programs
COPY . .
Expand Down
Loading

0 comments on commit 145648a

Please sign in to comment.