Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Upgrade to latest anchor version, supporting the new IDL s… #33

Merged
merged 6 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/publish-bolt-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,14 @@ jobs:
- name: run build
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
solana-test-validator > /dev/null &
sleep 5
solana airdrop -u l 100 tEsT3eV6RFCWs1BZ7AXTzasHqTtMnMLCB2tjQ42TDXD
anchor build
anchor idl build
anchor deploy
pkill -9 -f solana-test-validator
cargo install --path cli --force --locked
bolt build

- name: run tests
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
anchor test
cargo install --path cli --force --locked
bolt test

- name: cargo publish
run: |
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/publish-bolt-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,14 @@ jobs:
- name: run build
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
solana-test-validator > /dev/null &
sleep 5
solana airdrop -u l 100 tEsT3eV6RFCWs1BZ7AXTzasHqTtMnMLCB2tjQ42TDXD
anchor build
anchor idl build
anchor deploy
pkill -9 -f solana-test-validator
cargo install --path cli --force --locked
bolt build

- name: run tests
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
anchor test
cargo install --path cli --force --locked
bolt test

- name: npm publish
run: |
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
solana_version: v1.18.8
anchor_version: 0.29.0

jobs:
install:
Expand Down Expand Up @@ -151,20 +150,14 @@ jobs:
- name: run build
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
solana-test-validator > /dev/null &
sleep 5
solana airdrop -u l 100 tEsT3eV6RFCWs1BZ7AXTzasHqTtMnMLCB2tjQ42TDXD
anchor build
anchor idl build
anchor deploy
pkill -9 -f solana-test-validator
cargo install --path cli --force --locked
bolt build

- name: run tests
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm i -g @coral-xyz/anchor-cli@${{ env.anchor_version }} ts-mocha typescript
anchor test
cargo install --path cli --force --locked
bolt test

- name: Install the Bolt CLI and create & build a new project
shell: bash
Expand Down
1 change: 0 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ system-apply-velocity = "6LHhFVwif6N9Po3jHtSmMVtPjF6zRfL3xMosSzcrQAS8"
system-fly = "HT2YawJjkNmqWcLNfPAMvNsLdWwPvvvbKA5bpMw4eUpq"
system-simple-movement = "FSa6qoJXFBR3a7ThQkTAMrC15p6NkchPEjBdd4n6dXxA"
velocity = "CbHEFbSQdRN4Wnoby9r16umnJ1zWbULBHg4yqzGQonU1"
world = "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n"

[registry]
url = "https://api.apr.dev"
Expand Down
Loading
Loading