Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit cf7a030

Browse files
committed
prefer native over bpf for token22 tests
1 parent 9a45570 commit cf7a030

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/pull-request-token.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name: Token Pull Request
33
on:
44
pull_request:
55
paths:
6-
- 'associated-token-account/**'
7-
- 'token/**'
8-
- 'ci/*-version.sh'
9-
- '.github/workflows/pull-request-token.yml'
10-
- '!token/js/**'
6+
- "associated-token-account/**"
7+
- "token/**"
8+
- "ci/*-version.sh"
9+
- ".github/workflows/pull-request-token.yml"
10+
- "!token/js/**"
1111
push:
1212
branches: [master]
1313
paths:
14-
- 'associated-token-account/**'
15-
- 'token/**'
16-
- 'ci/*-version.sh'
17-
- '.github/workflows/pull-request-token.yml'
18-
- '!token/js/**'
14+
- "associated-token-account/**"
15+
- "token/**"
16+
- "ci/*-version.sh"
17+
- ".github/workflows/pull-request-token.yml"
18+
- "!token/js/**"
1919

2020
concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -66,9 +66,7 @@ jobs:
6666
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
6767
6868
- name: Build and test token
69-
run: |
70-
cargo build-sbf --manifest-path record/program/Cargo.toml
71-
./ci/cargo-test-sbf.sh token
69+
run: ./ci/cargo-test-sbf.sh token
7270

7371
- name: Upload programs
7472
uses: actions/upload-artifact@v3
@@ -248,7 +246,6 @@ jobs:
248246
run: |
249247
cargo build-sbf --manifest-path token/program-2022/Cargo.toml
250248
cargo build-sbf --manifest-path instruction-padding/program/Cargo.toml
251-
cargo build-sbf --manifest-path record/program/Cargo.toml
252249
./token/twoxtx-setup.sh
253250
./token/twoxtx-solana/cargo-test-sbf --manifest-path token/program-2022-test/Cargo.toml -- --nocapture
254251

token/program-2022-test/tests/program_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ impl TestContext {
4444
pub async fn new() -> Self {
4545
let mut program_test =
4646
ProgramTest::new("spl_token_2022", id(), processor!(Processor::process));
47+
program_test.prefer_bpf(false);
4748
program_test.add_program(
4849
"spl_record",
4950
spl_record::id(),

0 commit comments

Comments
 (0)