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

[account compression] Fix for closing trees on mainnet #7363

Closed
wants to merge 7 commits into from
Closed
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
82 changes: 8 additions & 74 deletions .github/workflows/pull-request-account-compression.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,8 @@
name: Account Compression Pull Request

on:
pull_request:
paths:
- "account-compression/**"
- "libraries/concurrent-merkle-tree/**"
- "ci/*-version.sh"
- "ci/install-anchor.sh"
- ".github/workflows/pull-request-account-compression.yml"
- "!account-compression/sdk/**"
push:
branches: [master]
paths:
- "account-compression/**"
- "libraries/concurrent-merkle-tree/**"
- "ci/*-version.sh"
- "ci/install-anchor.sh"
- ".github/workflows/pull-request-account-compression.yml"
- "!account-compression/sdk/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on: workflow_dispatch

jobs:
anchor-build-account-compression:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set env vars
run: |
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

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_STABLE }}

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }}

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-sbf-bins-${{ runner.os }}

- uses: actions/cache@v4
with:
path: ~/.cache/solana
key: solana-${{ env.SOLANA_VERSION }}

- name: Install dependencies
run: |
./ci/install-build-deps.sh
./ci/install-program-deps.sh
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH

- name: Build and test programs
run: ./ci/cargo-test-sbf.sh account-compression

- name: Upload programs
uses: actions/upload-artifact@v3
with:
name: account-compression-programs
path: "account-compression/target/deploy/*.so"
if-no-files-found: error

js-test-account-compression:
runs-on: ubuntu-latest
env:
Expand All @@ -94,3 +21,10 @@ jobs:
restore-keys: |
node-
- run: ./ci/js-test-account-compression.sh
- uses: actions/upload-artifact@v3
with:
name: account-compression-programs
path: |
target/deploy/spl_account_compression.so
target/deploy/spl_noop.so
if-no-files-found: error
Loading
Loading