Skip to content

Commit 9d09ab7

Browse files
author
Orgy
committed
ci(anchor): fix solana setup and harden rust quality audit step
1 parent 4db04d1 commit 9d09ab7

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/anchor.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ concurrency:
3636
env:
3737
SOLANA_VERSION: '1.18.26'
3838
ANCHOR_VERSION: '0.30.1'
39-
RUST_VERSION: '1.79'
39+
RUST_VERSION: '1.85'
4040
NODE_VERSION: '20'
4141

4242
# ══════════════════════════════════════════════════════════════════
@@ -57,9 +57,9 @@ jobs:
5757
components: clippy, rustfmt
5858

5959
- name: Setup Solana
60-
uses: metadaoproject/setup-solana@v1
61-
with:
62-
solana-cli-version: ${{ env.SOLANA_VERSION }}
60+
run: |
61+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
62+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
6363
6464
- name: Install Anchor CLI
6565
run: npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
@@ -132,9 +132,9 @@ jobs:
132132
toolchain: ${{ env.RUST_VERSION }}
133133

134134
- name: Setup Solana
135-
uses: metadaoproject/setup-solana@v1
136-
with:
137-
solana-cli-version: ${{ env.SOLANA_VERSION }}
135+
run: |
136+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
137+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
138138
139139
- name: Install Anchor CLI
140140
run: npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
@@ -192,9 +192,9 @@ jobs:
192192
components: clippy, rustfmt
193193

194194
- name: Setup Solana
195-
uses: metadaoproject/setup-solana@v1
196-
with:
197-
solana-cli-version: ${{ env.SOLANA_VERSION }}
195+
run: |
196+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
197+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
198198
199199
- name: Install Anchor CLI
200200
run: npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
@@ -267,9 +267,9 @@ jobs:
267267
toolchain: ${{ env.RUST_VERSION }}
268268

269269
- name: Setup Solana
270-
uses: metadaoproject/setup-solana@v1
271-
with:
272-
solana-cli-version: ${{ env.SOLANA_VERSION }}
270+
run: |
271+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
272+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
273273
274274
- name: Install Anchor CLI
275275
run: npm install -g @coral-xyz/anchor-cli@${{ env.ANCHOR_VERSION }}
@@ -358,7 +358,7 @@ jobs:
358358
continue-on-error: true
359359

360360
- name: Install cargo-audit
361-
run: cargo install cargo-audit --quiet
361+
run: cargo install cargo-audit --locked --quiet || true
362362

363363
- name: Security audit — bounty-registry
364364
working-directory: contracts/bounty-registry

0 commit comments

Comments
 (0)