Skip to content

Commit 35e5ebc

Browse files
committed
yolo
1 parent a120ba9 commit 35e5ebc

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/solana.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ on:
1010
- 'solana/**'
1111

1212
env:
13+
ANCHOR_VERSION: 0.30.1
1314
CARGO_TERM_COLOR: always
15+
NODE_VERSION: 20.11.0
1416
RUSTC_VERSION: 1.75.0
15-
17+
SOLANA_VERSION: 1.18.15
1618
jobs:
1719
cancel-previous-runs:
1820
runs-on: ubuntu-latest
@@ -54,14 +56,29 @@ jobs:
5456
runs-on: ubuntu-latest
5557
steps:
5658
- uses: actions/checkout@v4
57-
- uses: metadaoproject/setup-anchor@v2
59+
- name: Install toolchain
60+
uses: dtolnay/rust-toolchain@master
5861
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
62+
toolchain: ${{ env.RUSTC_VERSION }}
63+
components: clippy, rustfmt
64+
- uses: actions/setup-node@v4
65+
with:
66+
node-version: ${{ env.NODE_VERSION }}
67+
- name: Install Solana CLI tools
68+
run: sh -c "$(curl -sSfL https://release.anza.xyz/v${{ env.SOLANA_VERSION }}/install)"
69+
shell: bash
70+
- name: Update PATH
71+
run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
72+
shell: bash
73+
- name: Install Anchor
74+
run: cargo install --git https://github.com/coral-xyz/anchor avm --force --version ${{ env.ANCHOR_VERSION }} # - uses: metadaoproject/setup-anchor@v2
75+
# with:
76+
# node-version: "20.11.0"
77+
# solana-cli-version: "1.18.15"
78+
# anchor-version: "0.30.1"
79+
# - name: make check-idl
80+
# run: make check-idl
81+
# working-directory: ./solana
6582

6683
make-anchor-test:
6784
name: make anchor-test

0 commit comments

Comments
 (0)