Skip to content

Commit 2bb394e

Browse files
author
Bengt Lofgren
committed
trying
1 parent ef83ab0 commit 2bb394e

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/solana.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,29 @@ jobs:
5353
name: make check-idl
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v4
57-
- uses: metadaoproject/setup-anchor@v2
56+
- uses: actions/[email protected]
5857
with:
5958
node-version: "20.11.0"
60-
solana-cli-version: "1.18.15"
61-
anchor-version: "0.30.1"
59+
- name: Cache Solana CLI tools
60+
uses: actions/cache@v4
61+
with:
62+
path: |
63+
~/.cache/solana/
64+
~/.local/share/solana/
65+
key: solana-cli-${{ runner.os }}-build-1.18.15
66+
- name: Install Solana CLI tools
67+
run: |
68+
sh -c "$(curl -sSfL https://release.solana.com/v1.18.15/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: npm i -g @coral-xyz/[email protected]
75+
shell: bash
6276
- name: Set default Rust toolchain
63-
run: rustup default nightly
77+
run: rustup default stable
6478
working-directory: ./solana
65-
- name: Pin setup-node to v3.8.2
66-
uses: actions/[email protected]
67-
with:
68-
node-version: "20.11.0"
6979
- name: make check-idl
7080
run: make check-idl
7181
working-directory: ./solana

0 commit comments

Comments
 (0)