Skip to content

Commit 77f0be8

Browse files
committed
yolo
1 parent a120ba9 commit 77f0be8

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

.github/workflows/solana.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ on:
1111

1212
env:
1313
CARGO_TERM_COLOR: always
14+
NODE_VERSION: 20.11.0
1415
RUSTC_VERSION: 1.75.0
15-
16+
SOLANA_VERSION: 1.18.15
1617
jobs:
1718
cancel-previous-runs:
1819
runs-on: ubuntu-latest
@@ -54,14 +55,29 @@ jobs:
5455
runs-on: ubuntu-latest
5556
steps:
5657
- uses: actions/checkout@v4
57-
- uses: metadaoproject/setup-anchor@v2
58+
- name: Install toolchain
59+
uses: dtolnay/rust-toolchain@master
5860
with:
59-
node-version: "20.11.0"
60-
solana-cli-version: "1.18.15"
61-
anchor-version: "0.30.1"
62-
- name: make check-idl
63-
run: make check-idl
64-
working-directory: ./solana
61+
toolchain: ${{ env.RUSTC_VERSION }}
62+
components: clippy, rustfmt
63+
- uses: actions/setup-node@v4
64+
with:
65+
node-version: $ {{ env.NODE_VERSION }}
66+
- name: Install Solana CLI tools
67+
run: sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_VERSION }}/install)"
68+
shell: bash
69+
- name: Update PATH
70+
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
71+
shell: bash
72+
- name: Install Anchor
73+
run: cargo install --git https://github.com/coral-xyz/anchor avm --force --version ${{ env.ANCHOR_VERSION }} # - uses: metadaoproject/setup-anchor@v2
74+
# with:
75+
# node-version: "20.11.0"
76+
# solana-cli-version: "1.18.15"
77+
# anchor-version: "0.30.1"
78+
# - name: make check-idl
79+
# run: make check-idl
80+
# working-directory: ./solana
6581

6682
make-anchor-test:
6783
name: make anchor-test

0 commit comments

Comments
 (0)