Skip to content

Commit ffe608c

Browse files
gecubeclaude
andcommitted
chore: remove redundant Anchor installation step
Anchor CLI is now included with the Solana installation from solana-install.solana.workers.dev, so the separate installation step is no longer needed. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 5322260 commit ffe608c

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

.github/workflows/pr-check.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -88,45 +88,6 @@ jobs:
8888
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
8989
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
9090
solana --version
91-
92-
- name: Cache Anchor
93-
uses: actions/cache@v4
94-
with:
95-
path: |
96-
~/.cargo/bin/anchor
97-
~/.avm/
98-
key: anchor-${{ runner.os }}-0.31.1
99-
100-
- name: Install Anchor CLI
101-
run: |
102-
if [ ! -f "$HOME/.cargo/bin/anchor" ]; then
103-
echo "Anchor not found in cache, installing avm..."
104-
MAX_RETRIES=3
105-
RETRY_COUNT=0
106-
107-
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
108-
RETRY_COUNT=$((RETRY_COUNT + 1))
109-
echo "avm installation attempt $RETRY_COUNT of $MAX_RETRIES..."
110-
111-
if cargo install --git https://github.com/coral-xyz/anchor avm --locked --force; then
112-
break
113-
else
114-
if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then
115-
echo "avm installation failed, retrying in 10 seconds..."
116-
sleep 10
117-
else
118-
echo "avm installation failed after $MAX_RETRIES attempts"
119-
exit 1
120-
fi
121-
fi
122-
done
123-
124-
avm install 0.31.1
125-
else
126-
echo "Anchor found in cache, skipping avm installation"
127-
fi
128-
129-
avm use 0.31.1
13091
anchor --version
13192
13293
- name: Build contracts

0 commit comments

Comments
 (0)