feat: Fetch program account in chunk #709
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: DLMM Cli | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| SOLANA_CLI_VERSION: 2.1.0 | |
| NODE_VERSION: 20.11.0 | |
| ANCHOR_CLI_VERSION: 0.31.0 | |
| jobs: | |
| cli_changed_files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| cli: ${{steps.changed-files-specific.outputs.any_changed}} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get specific changed files | |
| id: changed-files-specific | |
| uses: tj-actions/changed-files@v18.6 | |
| with: | |
| files: | | |
| cli | |
| cli_build: | |
| runs-on: ubuntu-latest | |
| needs: cli_changed_files | |
| if: needs.cli_changed_files.outputs.cli == 'true' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| # Install rust + toolchain | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: 1.85.0 | |
| override: true | |
| components: clippy | |
| # Cache rust, cargo | |
| - uses: Swatinem/rust-cache@v1 | |
| - run: cargo build -p cli | |
| shell: bash |