Skip to content

Make AccountsListBuilder public (#77) #266

Make AccountsListBuilder public (#77)

Make AccountsListBuilder public (#77) #266

Workflow file for this run

name: Build
on:
push:
branches:
- master
- main
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
pull_request:
branches:
- master
- main
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
jobs:
format-build-test:
env:
CARGO_DRIFT_FFI_PATH: /usr/lib
runs-on: ubicloud
steps:
- name: Check out
uses: actions/checkout@v2
- name: Config rust toolchain
run: |
rustup show active-toolchain
rustup component add clippy rustfmt
- name: install libdrift_ffi_sys
run: |
curl -L https://github.com/user-attachments/files/17849111/libdrift_ffi_sys.so.zip > ffi.zip
unzip ffi.zip
ldd libdrift_ffi_sys.so
sudo cp libdrift_ffi_sys.so $CARGO_DRIFT_FFI_PATH
ldconfig -p
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: cargo check
- name: Test
run: |
cargo test --no-fail-fast --lib -- --nocapture
cargo test --no-fail-fast --test integration -- --nocapture --test-threads 1
env:
TEST_DEVNET_RPC_ENDPOINT: ${{ secrets.DEVNET_RPC_ENDPOINT }}
TEST_MAINNET_RPC_ENDPOINT: ${{ secrets.MAINNET_RPC_ENDPOINT }}
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}