solana: add shim integration instructions #106
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: solana | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- 'shim/integration' | |
paths: | |
- 'solana/**' | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTC_VERSION: 1.75.0 | |
jobs: | |
cancel-previous-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
make-cargo-test-all: | |
name: make cargo-test-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.RUSTC_VERSION }} | |
- name: Git Submodule Update | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git submodule update --init --recursive | |
working-directory: ./solana | |
- name: make cargo-test-all | |
run: make cargo-test-all | |
working-directory: ./solana | |
make-lint: | |
name: make lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.RUSTC_VERSION }} | |
components: clippy, rustfmt | |
- name: Git Submodule Update | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git submodule update --init --recursive | |
working-directory: ./solana | |
- name: make lint | |
run: make lint | |
working-directory: ./solana | |
make-check-idl: | |
name: make check-idl | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: metadaoproject/setup-anchor@v2 | |
with: | |
node-version: "20.11.0" | |
solana-cli-version: "1.18.15" | |
anchor-version: "0.30.1" | |
- name: Set default Rust toolchain | |
run: rustup default stable | |
working-directory: ./solana | |
- name: Git Submodule Update | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git submodule update --init --recursive | |
working-directory: ./solana | |
- name: make check-idl | |
run: make check-idl | |
working-directory: ./solana | |
make-anchor-test: | |
name: make anchor-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- uses: metadaoproject/setup-anchor@v2 | |
with: | |
node-version: "20.11.0" | |
solana-cli-version: "1.18.15" | |
anchor-version: "0.30.1" | |
- name: Set default Rust toolchain | |
run: rustup default stable | |
working-directory: ./solana | |
- name: Git Submodule Update | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git submodule update --init --recursive | |
working-directory: ./solana | |
- name: make anchor-test | |
run: make anchor-test | |
working-directory: ./solana | |
make-anchor-test-upgrade: | |
name: make anchor-test-upgrade | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- uses: metadaoproject/setup-anchor@v2 | |
with: | |
node-version: "20.11.0" | |
solana-cli-version: "1.18.15" | |
anchor-version: "0.30.1" | |
- name: Set default Rust toolchain | |
run: rustup default stable | |
working-directory: ./solana | |
- name: make anchor-test-upgrade | |
run: make anchor-test-upgrade | |
working-directory: ./solana |