Skip to content

Commit 45fa8df

Browse files
authored
Merge pull request #47 from Turbin3/place_order-16
ci: build SBF program before running integration tests
2 parents 31538c7 + 4c80395 commit 45fa8df

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,17 @@ jobs:
5252
target
5353
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
5454
restore-keys: ${{ runner.os }}-test-
55+
# The integration tests load the compiled program from
56+
# target/deploy/flux_dex.so, so the SBF toolchain must build it first.
57+
- name: Install Solana CLI (cargo build-sbf)
58+
run: |
59+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
60+
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
61+
- name: Cache SBF platform tools
62+
uses: actions/cache@v4
63+
with:
64+
path: ~/.cache/solana
65+
key: ${{ runner.os }}-sbf-tools
66+
- name: Build SBF program
67+
run: cargo build-sbf
5568
- run: cargo test

0 commit comments

Comments
 (0)