Skip to content

Commit

Permalink
⬆️ Upgrade anchor_lang to 0.30.0 (#45)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade anchor_lang to 0.30.0

* 🐛 Bug Fixes

* ♻️ Code Refactoring

* 🐛 Fix anchor-lang version

* 👷 Update solana version in CI/CD

* ➖ Remove solana-client dep

* 🐛 Fix generated toml

* 📌 Pin ahash dependency

* 💚 Fix tests on generated proj

* 👷 Run also on release branch

* 👷 Remove frozen flag

* 👷 Ignore error on cargo add single crates
  • Loading branch information
GabrielePicco authored Apr 23, 2024
1 parent 6322f45 commit 978cb84
Show file tree
Hide file tree
Showing 15 changed files with 649 additions and 435 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-bolt-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
workflow_dispatch:

env:
solana_version: v1.18.1
anchor_version: 0.29.0
solana_version: v1.18.8

jobs:
install:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish-bolt-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
workflow_dispatch:

env:
solana_version: v1.18.1
anchor_version: 0.29.0
solana_version: v1.18.8

jobs:
install:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

env:
solana_version: v1.18.8
solana_version: v1.18.9

jobs:
install:
Expand Down Expand Up @@ -161,14 +161,15 @@ jobs:
- name: Install the Bolt CLI and create & build a new project
shell: bash
if: ${{ !startsWith(github.ref, 'refs/heads/release/v') && !startsWith(github.head_ref, 'release/v') }}
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
cargo install --path cli --force --locked
bolt init test-project --force
cd test-project
cargo add --package position --path "../crates/bolt-lang" # Overrides the version with the local version
cargo add --package movement --path "../crates/bolt-lang" # -
cargo add --package test-project --path "../crates/bolt-lang" || true # Overrides the version with the local version
cargo add --package movement --path "../crates/bolt-lang" || true # -
cargo add --package position --path "../crates/bolt-lang" || true # -
cargo update
yarn add file:../clients/bolt-sdk/ -D # Overrides the bolt ts SDK with the local version
bolt build
bolt test
Loading

0 comments on commit 978cb84

Please sign in to comment.