Skip to content

Commit 6e6e5f0

Browse files
authored
chore(ci): use latest anchor version (#516)
* chore(ci): use latest anchor version * chore: setup node * chore: install anchor with cargo * chore: install anchor with curl * chore: install anchor with curl * fix: curl installation * fix: anchor installation via cargo * chore: install anchor right before building solana contract
1 parent 1dceb8d commit 6e6e5f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/update-contracts.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
2323
- name: Clone the repository
2424
uses: actions/checkout@v3
25-
25+
2626
- name: Install cargo-near
2727
run: |
2828
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
@@ -33,7 +33,12 @@ jobs:
3333
timeout-minutes: 60
3434

3535
- name: Install Anchor
36-
uses: metadaoproject/setup-anchor@v3
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y pkg-config libudev-dev
39+
cargo install --git https://github.com/coral-xyz/anchor --tag v0.32.1 --locked anchor-cli
40+
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
41+
shell: bash
3742

3843
- name: Build Solana contract
3944
run: |

0 commit comments

Comments
 (0)