Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: solana-labs/solana-program-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: pod-v0.4.0
Choose a base ref
...
head repository: solana-labs/solana-program-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 949 changed files with 7,708 additions and 173,671 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish-rust.yml
Original file line number Diff line number Diff line change
@@ -60,6 +60,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Remove unneeded packages for more space
run: bash ./ci/warning/purge-ubuntu-runner.sh

- name: Set env vars
run: |
source ci/rust-version.sh
@@ -84,7 +87,7 @@ jobs:
run: ./ci/install-build-deps.sh

- name: Run clippy
run: ./cargo-nightly clippy -Zunstable-options --workspace --all-targets --features test-sbf -- --deny=warnings --deny=clippy::arithmetic_side_effects
run: ./cargo-nightly clippy -Zunstable-options --workspace --all-targets --all-features -- --deny=warnings --deny=clippy::arithmetic_side_effects

cargo-build-test:
runs-on: ubuntu-latest
@@ -153,6 +156,9 @@ jobs:
with:
toolchain: ${{ env.RUST_STABLE }}

- name: Install dependencies
run: ./ci/install-build-deps.sh

- uses: actions/cache@v4
with:
path: |
@@ -164,7 +170,7 @@ jobs:
cargo-publish-
- name: Install Cargo Release
run: which cargo-release || cargo install cargo-release
run: which cargo-release || cargo install cargo-release --version 0.25.11

- name: Ensure CARGO_REGISTRY_TOKEN variable is set
env:
@@ -180,6 +186,9 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Rebase
run: git pull --rebase origin

- name: Publish Crate
id: publish
env:
@@ -199,10 +208,6 @@ jobs:
./ci/publish-rust.sh "${{ inputs.package_path }}" $LEVEL $OPTIONS
- name: Push Commit and Tag
if: github.event.inputs.dry_run != 'true'
run: git push origin --follow-tags

- name: Generate a changelog
if: github.event.inputs.create_release == 'true'
uses: orhun/git-cliff-action@v3
12 changes: 8 additions & 4 deletions .github/workflows/pull-request-account-compression.yml
Original file line number Diff line number Diff line change
@@ -10,14 +10,15 @@ on:
- ".github/workflows/pull-request-account-compression.yml"
- "!account-compression/sdk/**"
push:
branches: [master]
branches: [master, ac-mainnet-tag]
paths:
- "account-compression/**"
- "libraries/concurrent-merkle-tree/**"
- "ci/*-version.sh"
- "ci/install-anchor.sh"
- ".github/workflows/pull-request-account-compression.yml"
- "!account-compression/sdk/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -31,10 +32,11 @@ jobs:

- name: Set env vars
run: |
echo "RUST_STABLE_VERSION=1.78.0" >> $GITHUB_ENV
echo "SOLANA_VERSION=v2.0.14" >> $GITHUB_ENV
source ci/rust-version.sh
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
source ci/solana-version.sh
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV
source ci/install-anchor.sh
echo "ANCHOR_CLI_VERSION=$anchor_cli_version" >> $GITHUB_ENV
@@ -70,7 +72,7 @@ jobs:
run: ./ci/cargo-test-sbf.sh account-compression

- name: Upload programs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: account-compression-programs
path: "account-compression/target/deploy/*.so"
@@ -79,7 +81,7 @@ jobs:
js-test-account-compression:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.x
NODE_VERSION: 20.X
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
@@ -93,4 +95,6 @@ jobs:
key: node-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-
- name: Set env vars
run: echo "SOLANA_VERSION=v2.0.14" >> $GITHUB_ENV
- run: ./ci/js-test-account-compression.sh
64 changes: 0 additions & 64 deletions .github/workflows/pull-request-feature-proposal.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/pull-request-instruction-padding.yml

This file was deleted.

36 changes: 9 additions & 27 deletions .github/workflows/pull-request-js.yml
Original file line number Diff line number Diff line change
@@ -4,30 +4,16 @@ on:
pull_request:
paths:
- 'account-compression/sdk/**'
- 'libraries/type-length-value/js/**'
- 'memo/js/**'
- 'name-service/js/**'
- 'single-pool/js/**'
- 'stake-pool/js/**'
- 'token/js/**'
- 'token-group/js/**'
- 'token-lending/js/**'
- 'token-metadata/js/**'
- 'token-swap/js/**'
- 'pnpm-lock.yaml'
- '.github/workflows/pull-request-js.yml'
push:
branches: [master]
paths:
- 'account-compression/sdk/**'
- 'libraries/type-length-value/js/**'
- 'memo/js/**'
- 'single-pool/js/**'
- 'stake-pool/js/**'
- 'token/js/**'
- 'token-group/js/**'
- 'token-lending/js/**'
- 'token-metadata/js/**'
- 'token-swap/js/**'
- 'pnpm-lock.yaml'
- '.github/workflows/pull-request-js.yml'
@@ -40,29 +26,25 @@ jobs:
js-test:
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
package:
[
account-compression,
libraries,
memo,
name-service,
single-pool,
stake-pool,
token,
token-group,
token-lending,
token-metadata,
token-swap,
]
include:
# Restrict certain packages to supported Node.js versions.
- package: account-compression
node-version: 20.x
- package: token-lending
node-version: 18.5
runs-on: ubuntu-latest
env:
NODE_VERSION: 20.5
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- uses: actions/cache@v4
with:
21 changes: 0 additions & 21 deletions .github/workflows/pull-request-libraries.yml
Original file line number Diff line number Diff line change
@@ -6,14 +6,12 @@ on:
- 'libraries/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-libraries.yml'
- '!libraries/**/js/**'
push:
branches: [master]
paths:
- 'libraries/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-libraries.yml'
- '!libraries/**/js/**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -62,22 +60,3 @@ jobs:
- name: Build and test
run: ./ci/cargo-test-sbf.sh libraries

js-test:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.x
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v4
- uses: actions/cache@v4
with:
path: ~/.npm
key: node-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
node-
- run: ./ci/js-test-libraries.sh
Loading