generated from metaplex-foundation/solana-project-template
-
Notifications
You must be signed in to change notification settings - Fork 48
Stranzhay/upgrade to solana 2 #236
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b0a8d05
feat: mid upgrade still doesn't compile
stranzhay 8da3637
chore: bump all solana versions to 2.0 and bump mpl-utils version
stranzhay 4a21951
chore: bump versions
stranzhay 0468bb2
chore: force version 3 in lock file
stranzhay 0afdfa9
chore: frozen lockfile pnpm
stranzhay e43e8dd
chore: updating github env to try to fix ci
stranzhay 224694c
chore: updating github env to try to fix ci
stranzhay 7231c64
chore: updating github env to try to fix ci
stranzhay bef4b16
chore: match workflow files to githubenv
stranzhay 9cd288a
chore: match workflow files to githubenv
stranzhay c3f618d
chore: final rustv change
stranzhay ebc953b
chore: add protobuf compiler to github workflows
stranzhay 5e6c6e4
chore: upgrade anchor version in rust client
stranzhay f7bf046
chore: revert lock back
stranzhay df031b6
chore: anchor ci error
stranzhay 6ce25da
chore: fix js client ci
stranzhay d24cd8f
chore: merge conflicts
stranzhay e63ccab
chore: lockfile issue
stranzhay bbac547
chore: lockfile issue
stranzhay 0723c1c
chore: trying to fix all of the ci stuff
stranzhay 150ddae
chore: further bumping versions
stranzhay 0af623f
chore: bump down lock v
stranzhay bdedb6e
chore: update gh actions solana v
stranzhay 39f2c54
chore: fix version to crate published version
stranzhay ba3d67a
chore: fix lockfile v again
stranzhay 01473bd
chore: update github env file
stranzhay d260111
chore: rustc to v1.83.0
stranzhay 355c071
chore: merge conflicts
stranzhay 2844857
chore: lockfile
stranzhay d1c1b13
chore: update package manager v
stranzhay 1ac0088
chore: match package manager
stranzhay 16c14f6
chore: downgrade package manager
stranzhay c215aa5
chore: run pnpm lockfile again with other v
stranzhay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
CARGO_TERM_COLOR=always | ||
NODE_VERSION=20.x | ||
PROGRAMS=["mpl-core"] | ||
RUST_VERSION=1.79.0 | ||
SOLANA_VERSION=1.18.19 | ||
RUST_VERSION=1.83.0 | ||
SOLANA_VERSION=2.2.1 | ||
COMMIT_USER_NAME=github-actions | ||
[email protected] | ||
DEPLOY_SOLANA_VERSION=1.18.19 | ||
DEPLOY_SOLANA_VERSION=2.2.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,84 @@ | ||
name: Build Programs | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
rust: | ||
type: string | ||
solana: | ||
type: string | ||
git_ref: | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
rust: | ||
description: Rust version | ||
default: 1.70.0 | ||
required: true | ||
type: string | ||
solana: | ||
description: Solana version | ||
default: 1.16.17 | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
rust: | ||
type: string | ||
solana: | ||
type: string | ||
git_ref: | ||
type: string | ||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
workflow_dispatch: | ||
inputs: | ||
rust: | ||
description: Rust version | ||
default: 1.83.0 | ||
required: true | ||
type: string | ||
solana: | ||
description: Solana version | ||
default: 2.2.1 | ||
required: true | ||
type: string | ||
|
||
env: | ||
CACHE: true | ||
CACHE: true | ||
|
||
jobs: | ||
build_programs: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.git_ref }} | ||
build_programs: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.git_ref }} | ||
|
||
- name: Load environment variables | ||
run: cat .github/.env >> $GITHUB_ENV | ||
- name: Load environment variables | ||
run: cat .github/.env >> $GITHUB_ENV | ||
|
||
- name: Install Rust | ||
uses: metaplex-foundation/actions/install-rust@v1 | ||
with: | ||
toolchain: ${{ inputs.rust || env.RUST_VERSION }} | ||
- name: Install Rust | ||
uses: metaplex-foundation/actions/install-rust@v1 | ||
with: | ||
toolchain: ${{ inputs.rust || env.RUST_VERSION }} | ||
|
||
- name: Install Solana | ||
uses: metaplex-foundation/actions/install-solana@v1 | ||
with: | ||
version: ${{ inputs.solana || env.SOLANA_VERSION }} | ||
cache: ${{ env.CACHE }} | ||
- name: Install Solana | ||
uses: metaplex-foundation/actions/install-solana@v1 | ||
with: | ||
version: ${{ inputs.solana || env.SOLANA_VERSION }} | ||
cache: ${{ env.CACHE }} | ||
|
||
- name: Cache program dependencies | ||
if: env.CACHE == 'true' | ||
uses: metaplex-foundation/actions/cache-programs@v1 | ||
- name: Install Protobuf Compiler | ||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | ||
|
||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Build programs | ||
shell: bash | ||
working-directory: configs/scripts/program | ||
run: ./build.sh | ||
env: | ||
PROGRAMS: ${{ env.PROGRAMS }} | ||
- name: Cache program dependencies | ||
if: env.CACHE == 'true' | ||
uses: metaplex-foundation/actions/cache-programs@v1 | ||
|
||
- name: Sanitize Ref | ||
id: sanitize | ||
shell: bash | ||
run: | | ||
REF="${{ inputs.git_ref }}" | ||
if [ -z "$REF" ]; then | ||
REF="default" | ||
fi | ||
SANITIZED=${REF//\//-} | ||
echo "sanitized=$SANITIZED" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload program builds | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: program-builds-${{ steps.sanitize.outputs.sanitized }} | ||
# First wildcard ensures exported paths are consistently under the programs folder. | ||
path: ./program*/.bin/*.so | ||
include-hidden-files: true | ||
if-no-files-found: error | ||
- name: Build programs | ||
shell: bash | ||
working-directory: configs/scripts/program | ||
run: ./build.sh | ||
env: | ||
PROGRAMS: ${{ env.PROGRAMS }} | ||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Sanitize Ref | ||
id: sanitize | ||
shell: bash | ||
run: | | ||
REF="${{ inputs.git_ref }}" | ||
if [ -z "$REF" ]; then | ||
REF="default" | ||
fi | ||
SANITIZED=${REF//\//-} | ||
echo "sanitized=$SANITIZED" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload program builds | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: program-builds-${{ steps.sanitize.outputs.sanitized }} | ||
# First wildcard ensures exported paths are consistently under the programs folder. | ||
path: ./program*/.bin/*.so | ||
include-hidden-files: true | ||
if-no-files-found: error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,78 @@ | ||
name: Build Rust Client | ||
|
||
on: | ||
blockiosaurus marked this conversation as resolved.
Show resolved
Hide resolved
|
||
workflow_call: | ||
inputs: | ||
rust: | ||
type: string | ||
solana: | ||
type: string | ||
git_ref: | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
rust: | ||
description: Rust version | ||
default: 1.70.0 | ||
required: true | ||
type: string | ||
solana: | ||
description: Solana version | ||
default: 1.16.17 | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
rust: | ||
type: string | ||
solana: | ||
type: string | ||
git_ref: | ||
type: string | ||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
workflow_dispatch: | ||
inputs: | ||
rust: | ||
description: Rust version | ||
default: 1.83.0 | ||
required: true | ||
type: string | ||
solana: | ||
description: Solana version | ||
default: 2.2.1 | ||
required: true | ||
type: string | ||
|
||
env: | ||
CACHE: true | ||
CACHE: true | ||
|
||
jobs: | ||
build_sdk: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.git_ref }} | ||
build_sdk: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.git_ref }} | ||
|
||
- name: Load environment variables | ||
run: cat .github/.env >> $GITHUB_ENV | ||
- name: Load environment variables | ||
run: cat .github/.env >> $GITHUB_ENV | ||
|
||
- name: Install Rust | ||
uses: metaplex-foundation/actions/install-rust@v1 | ||
with: | ||
toolchain: ${{ inputs.rust || env.RUST_VERSION }} | ||
- name: Install Rust | ||
uses: metaplex-foundation/actions/install-rust@v1 | ||
with: | ||
toolchain: ${{ inputs.rust || env.RUST_VERSION }} | ||
|
||
- name: Install Solana | ||
uses: metaplex-foundation/actions/install-solana@v1 | ||
with: | ||
version: ${{ inputs.solana || env.SOLANA_VERSION }} | ||
cache: ${{ env.CACHE }} | ||
- name: Install Solana | ||
uses: metaplex-foundation/actions/install-solana@v1 | ||
with: | ||
version: ${{ inputs.solana || env.SOLANA_VERSION }} | ||
cache: ${{ env.CACHE }} | ||
|
||
- name: Cache Rust client test dependencies | ||
uses: metaplex-foundation/actions/cache-crate@v1 | ||
with: | ||
folder: ./clients/rust | ||
key: rust-client-test | ||
- name: Install Protobuf Compiler | ||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | ||
|
||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features --no-deps --manifest-path ./clients/rust/Cargo.toml | ||
- name: Cache Rust client test dependencies | ||
uses: metaplex-foundation/actions/cache-crate@v1 | ||
with: | ||
folder: ./clients/rust | ||
key: rust-client-test | ||
|
||
- name: Build Rust client | ||
shell: bash | ||
working-directory: clients/rust | ||
run: cargo build --all-features --release | ||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features --no-deps --manifest-path ./clients/rust/Cargo.toml | ||
stranzhay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Upload Rust client builds | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rust-client-builds | ||
# First wildcard ensures exported paths are consistently under the clients folder. | ||
path: ./targe*/release/*mpl_core* | ||
if-no-files-found: error | ||
- name: Build Rust client | ||
shell: bash | ||
working-directory: clients/rust | ||
run: cargo build --all-features --release | ||
|
||
- name: Upload Rust client builds | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rust-client-builds | ||
# First wildcard ensures exported paths are consistently under the clients folder. | ||
path: ./targe*/release/*mpl_core* | ||
if-no-files-found: error |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.