Skip to content

Commit 63ef876

Browse files
authored
use solana-rpc-client-api crate (#7)
* use solana-rpc-client-api crate * update CI and docker image to always pull latest libdrift
1 parent efbcce5 commit 63ef876

File tree

6 files changed

+234
-1105
lines changed

6 files changed

+234
-1105
lines changed

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ jobs:
2222
uses: actions/checkout@v3
2323

2424
- name: Install OS dependencies
25-
run: apt-get update && apt-get install -y git libssl-dev libsasl2-dev cmake
25+
run: apt-get update && apt-get install -y git libssl-dev libsasl2-dev cmake jq
2626

2727
- name: Install rustfmt and toolchain
2828
run: rustup component add rustfmt
2929

3030
- name: Install libdrift_ffi
31-
run: curl -L https://github.com/drift-labs/drift-ffi-sys/releases/download/v2.109.0/libdrift_ffi_sys.so -o libdrift_ffi_sys.so && cp libdrift_ffi_sys.so $CARGO_DRIFT_FFI_PATH
31+
run: |
32+
SO_URL=$(curl -s https://api.github.com/repos/drift-labs/drift-ffi-sys/releases/latest | jq -r '.assets[] | select(.name=="libdrift_ffi_sys.so") | .browser_download_url')
33+
echo "downloading libdrift: $SO_URL"
34+
curl -L -o libdrift_ffi_sys.so "$SO_URL"
35+
cp libdrift_ffi_sys.so $CARGO_DRIFT_FFI_PATH
3236
3337
- name: Cache cargo index
34-
uses: actions/cache@v2
38+
uses: actions/cache@v4
3539
with:
3640
path: ~/.cargo/git
3741
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}

0 commit comments

Comments
 (0)