This repository was archived by the owner on Sep 8, 2026. It is now read-only.
Remove the fund-seat instruction from the Solana SDK (#416) #1652
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
| name: local-validator | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| SOLANA_CLI: v3.0.12 | |
| jobs: | |
| test-doublezero-solana-fork: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check disk space before cleanup | |
| run: df -h | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| sudo docker builder prune -a --force | |
| - name: Check disk space after cleanup | |
| run: df -h | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Solana toolchain | |
| run: | | |
| sh -c "$(curl -sSfL https://release.anza.xyz/$SOLANA_CLI/install)" | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| - name: Generate ~/.config/solana/id.json | |
| run: solana-keygen new --silent --no-bip39-passphrase | |
| - name: Generate manager keypair for synthetic ValidatorClientRewards | |
| run: solana-keygen new --silent --no-bip39-passphrase -o manager_keypair.json | |
| - name: Start Solana mainnet-beta fork in background | |
| run: | | |
| MANAGER_PUBKEY=$(solana address -k manager_keypair.json) | |
| cargo run --bin doublezero-solana-fork -- -um --reset --synthetic-validator-client-rewards-manager "$MANAGER_PUBKEY" > /dev/null 2>&1 & | |
| - name: Build `doublezero-solana` | |
| run: cargo build --bin doublezero-solana | |
| - name: Run `doublezero-solana` tests | |
| run: bash sh/test_doublezero_solana_fork.sh | |
| test-doublezero-solana-validator-debt-fork-current: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check disk space before cleanup | |
| run: df -h | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| sudo docker builder prune -a --force | |
| - name: Check disk space after cleanup | |
| run: df -h | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Solana toolchain | |
| run: | | |
| sh -c "$(curl -sSfL https://release.anza.xyz/$SOLANA_CLI/install)" | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| - name: Generate ~/.config/solana/id.json | |
| run: solana-keygen new --silent --no-bip39-passphrase | |
| - name: Start Solana mainnet-beta fork in background | |
| run: cargo run --bin doublezero-solana-fork -- -um --reset --god-mode > /dev/null 2>&1 & | |
| - name: Build `doublezero-revenue-distribution-admin` and `doublezero-solana-validator-debt` | |
| run: cargo build --bin doublezero-revenue-distribution-admin --bin doublezero-solana-validator-debt --bin doublezero-solana | |
| - name: Run `doublezero-solana-validator-debt` tests | |
| run: bash sh/test_validator_debt_fork.sh | |
| # Commenting out as we may bring this back in the future | |
| # test-full-debt-flow: | |
| # runs-on: ubuntu-latest | |
| # needs: [test-doublezero-solana-validator-debt-fork-current] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Check disk space before cleanup | |
| # run: df -h | |
| # - name: Free disk space | |
| # run: | | |
| # sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| # sudo docker image prune --all --force | |
| # sudo docker builder prune -a --force | |
| # - name: Check disk space after cleanup | |
| # run: df -h | |
| # - uses: dtolnay/rust-toolchain@stable | |
| # - uses: Swatinem/rust-cache@v2 | |
| # - name: Solana toolchain | |
| # run: | | |
| # sh -c "$(curl -sSfL https://release.anza.xyz/$SOLANA_CLI/install)" | |
| # echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| # - name: Generate ~/.config/solana/id.json | |
| # run: solana-keygen new --silent --no-bip39-passphrase | |
| # - name: Build binaries | |
| # run: | | |
| # cargo build --bin doublezero-solana \ | |
| # --bin doublezero-solana-validator-debt \ | |
| # --bin doublezero-revenue-distribution-admin \ | |
| # --bin doublezero-solana-fork | |
| # - name: Start Solana mainnet-beta fork in background | |
| # run: cargo run --bin doublezero-solana-fork -- -um --reset --god-mode > /dev/null 2>&1 & | |
| # - name: Run full debt flow test | |
| # run: CI=1 SKIP_FORK_START=1 bash sh/test_full_debt_flow.sh | |
| # timeout-minutes: 10 | |
| # - name: Run Rust integration tests | |
| # run: cargo test --features integration -p doublezero-solana-validator-debt | |
| # timeout-minutes: 5 | |
| test-doublezero-solana-validator-debt-fork-override-76: | |
| if: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check disk space before cleanup | |
| run: df -h | |
| - name: Free disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| sudo docker builder prune -a --force | |
| - name: Check disk space after cleanup | |
| run: df -h | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Solana toolchain | |
| run: | | |
| sh -c "$(curl -sSfL https://release.anza.xyz/$SOLANA_CLI/install)" | |
| echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | |
| - name: Generate ~/.config/solana/id.json | |
| run: solana-keygen new --silent --no-bip39-passphrase | |
| - name: Start Solana mainnet-beta fork in background | |
| run: cargo run --bin doublezero-solana-fork -- -um --reset --god-mode --next-completed-dz-epoch-override 76 > /dev/null 2>&1 & | |
| - name: Build `doublezero-revenue-distribution-admin` and `doublezero-solana-validator-debt` | |
| run: cargo build --bin doublezero-revenue-distribution-admin --bin doublezero-solana-validator-debt | |
| - name: Run `doublezero-solana-validator-debt` tests | |
| run: bash sh/test_validator_debt_fork.sh |