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

Support 0.30 IDL #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 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.16.17
SOLANA_CLI_VERSION: 1.18.11
jobs:
build-and-test:
name: Build and test programs
Expand All @@ -30,7 +30,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-anchor-${{ hashFiles('**/Cargo.lock') }}
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.29.0 anchor-cli --locked --force
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked --force
working-directory: /
- name: Install latest nightly
uses: actions-rs/toolchain@v1
Expand All @@ -41,24 +41,24 @@ jobs:
# --force is hack around cargo caching, figure out later
- name: Setup Rust tools
run: |
cargo +nightly-2023-10-05 install cargo-sort --force
cargo +nightly-2023-10-05 install cargo-udeps --force
cargo +nightly-2024-02-04 install cargo-sort --force
cargo +nightly-2024-02-04 install cargo-udeps --force
shell: bash

- name: cargo sort
run: cargo +nightly-2023-10-05 sort --workspace --check
run: cargo +nightly-2024-02-04 sort --workspace --check
shell: bash

- name: cargo fmt
run: cargo +nightly-2023-10-05 fmt --all --check
run: cargo +nightly-2024-02-04 fmt --all --check
shell: bash

- name: clippy
run: cargo +nightly-2023-10-05 clippy --all-features --all-targets --tests -- -D warnings
run: cargo +nightly-2024-02-04 clippy --all-features --all-targets --tests -- -D warnings
shell: bash

- name: cargo udeps
run: cargo +nightly-2023-10-05 udeps --all-features --all-targets --tests
run: cargo +nightly-2024-02-04 udeps --all-features --all-targets --tests
shell: bash

# Build IDLs
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

env:
SOLANA_CLI_VERSION: 1.16.17
SOLANA_CLI_VERSION: 1.18.11
jobs:
release:
name: Create the jito programs release
Expand All @@ -28,7 +28,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-anchor-${{ hashFiles('**/Cargo.lock') }}
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.29.0 anchor-cli --locked --force
- run: cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked --force

# Build IDLs + programs
- name: Build program
Expand All @@ -50,10 +50,10 @@ jobs:
run: git diff --exit-code

# Push to anchor repository
# - name: Anchor Login
# run: anchor login ${{ secrets.ANCHOR_PUBLISH_TOKEN }}
# - name: Publish merkle_distributor source code
# run: yes 'yes' | anchor publish merkle_distributor --skip-build --provider.cluster mainnet
# - name: Anchor Login
# run: anchor login ${{ secrets.ANCHOR_PUBLISH_TOKEN }}
# - name: Publish merkle_distributor source code
# run: yes 'yes' | anchor publish merkle_distributor --skip-build --provider.cluster mainnet

# Upload artifacts
- name: Upload Artifact
Expand Down
4 changes: 2 additions & 2 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[toolchain]
anchor_version = "0.29.0"
solana_version = "1.16.9" # Solana version to use
anchor_version = "0.30.1"
solana_version = "1.18.11" # Solana version to use

[features]
seeds = true
Expand Down
Loading
Loading