Skip to content
Merged
Show file tree
Hide file tree
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 Jun 12, 2025
8da3637
chore: bump all solana versions to 2.0 and bump mpl-utils version
stranzhay Jun 18, 2025
4a21951
chore: bump versions
stranzhay Jun 18, 2025
0468bb2
chore: force version 3 in lock file
stranzhay Jun 18, 2025
0afdfa9
chore: frozen lockfile pnpm
stranzhay Jun 18, 2025
e43e8dd
chore: updating github env to try to fix ci
stranzhay Jun 18, 2025
224694c
chore: updating github env to try to fix ci
stranzhay Jun 18, 2025
7231c64
chore: updating github env to try to fix ci
stranzhay Jun 18, 2025
bef4b16
chore: match workflow files to githubenv
stranzhay Jun 19, 2025
9cd288a
chore: match workflow files to githubenv
stranzhay Jun 19, 2025
c3f618d
chore: final rustv change
stranzhay Jun 19, 2025
ebc953b
chore: add protobuf compiler to github workflows
stranzhay Jun 19, 2025
5e6c6e4
chore: upgrade anchor version in rust client
stranzhay Jun 19, 2025
f7bf046
chore: revert lock back
stranzhay Jun 19, 2025
df031b6
chore: anchor ci error
stranzhay Jun 19, 2025
6ce25da
chore: fix js client ci
stranzhay Jun 20, 2025
d24cd8f
chore: merge conflicts
stranzhay Jun 23, 2025
e63ccab
chore: lockfile issue
stranzhay Jun 23, 2025
bbac547
chore: lockfile issue
stranzhay Jun 23, 2025
0723c1c
chore: trying to fix all of the ci stuff
stranzhay Jun 25, 2025
150ddae
chore: further bumping versions
stranzhay Jul 15, 2025
0af623f
chore: bump down lock v
stranzhay Jul 15, 2025
bdedb6e
chore: update gh actions solana v
stranzhay Jul 15, 2025
39f2c54
chore: fix version to crate published version
stranzhay Jul 15, 2025
ba3d67a
chore: fix lockfile v again
stranzhay Jul 15, 2025
01473bd
chore: update github env file
stranzhay Jul 15, 2025
d260111
chore: rustc to v1.83.0
stranzhay Jul 15, 2025
355c071
chore: merge conflicts
stranzhay Jul 17, 2025
2844857
chore: lockfile
stranzhay Jul 17, 2025
d1c1b13
chore: update package manager v
stranzhay Jul 17, 2025
1ac0088
chore: match package manager
stranzhay Jul 17, 2025
16c14f6
chore: downgrade package manager
stranzhay Jul 17, 2025
c215aa5
chore: run pnpm lockfile again with other v
stranzhay Jul 17, 2025
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
6 changes: 3 additions & 3 deletions .github/.env
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
139 changes: 71 additions & 68 deletions .github/workflows/build-programs.yml
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
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

- 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 }}

- 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
125 changes: 64 additions & 61 deletions .github/workflows/build-rust-client.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,78 @@
name: Build Rust Client

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
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

- 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

- 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
Loading