⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

fix: pin agave versions to 3.0.x #412

fix: pin agave versions to 3.0.x

fix: pin agave versions to 3.0.x #412

Workflow file for this run

name: "ci"
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
lint:
timeout-minutes: 60
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: lint clippy
run: lint:clippy
shell: devenv shell -c -- bash -e {0}
- name: lint formatting
run: lint:format
shell: devenv shell -c -- bash -e {0}
test:
timeout-minutes: 60
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: increase open file limit
run: |
# WARNING: Setting the limit to 'unlimited' is not recommended.
# It's safer to set a specific high number, e.g., --nofile=1000000:1000000
sudo prlimit --pid $$ --nofile=1000000:1000000
echo "ULIMIT: $(ulimit -n)"
shell: bash
- name: test `memory_wallet` with `ssr`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo test_memory_wallet_ssr
shell: devenv shell -- bash -e {0}
- name: test `memory_wallet` with `docs`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo test_memory_wallet_docs
shell: devenv shell -- bash -e {0}
- name: test `wasm_client_solana` with `ssr`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo test_wasm_client_solana_ssr
shell: devenv shell -- bash -e {0}
- name: test `wasm_client_solana` with `docs`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo test_wasm_client_solana_docs
shell: devenv shell -- bash -e {0}
- name: test `test_utils_solana` with `ssr` and `test_validator`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo test_streams
shell: devenv shell -- bash -e {0}
- name: test `wasm` with background validator
continue-on-error: true
env:
WASM_BINDGEN_TEST_TIMEOUT: 120
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
install:eget
test:validator
shell: devenv shell -- bash -e {0}
coverage:
timeout-minutes: 60
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: coverage `memory_wallet_ssr`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo coverage_memory_wallet_ssr
shell: devenv shell -- bash -e {0}
# - name: coverage `memory_wallet_docs`
# run: cargo +nightly coverage_memory_wallet_docs
# shell: devenv shell bash -- -e {0}
- name: coverage `wasm_client_solana_ssr`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo coverage_wasm_client_solana_ssr
shell: devenv shell -- bash -e {0}
# - name: coverage `wasm_client_solana_docs`
# run: cargo +nightly coverage_wasm_client_solana_docs
# shell: devenv shell bash -- -e {0}
- name: coverage `streams`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo coverage_streams
shell: devenv shell -- bash -e {0}
- name: coverage `codecov_report`
run: |
sudo prlimit --pid $$ --nofile=1000000:1000000
cargo coverage_codecov_report
shell: devenv shell -- bash -e {0}
- name: upload coverage
if: ${{ github.actor != 'dependabot[bot]' }}
uses: codecov/codecov-action@v5
with:
files: codecov.json
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
build:
timeout-minutes: 60
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: cargo build --locked
shell: devenv shell -c -- bash -e {0}
- name: build all features
run: cargo build --all-features --locked
shell: devenv shell -c -- bash -e {0}
- name: build wasm
run: |
cargo build -p wasm_client_solana --target wasm32-unknown-unknown -F js
shell: devenv shell -c -- bash -e {0}