From 67eb7520b5ef738b4990bc44c292cfefcb63412e Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sat, 20 May 2023 20:34:38 +0200 Subject: [PATCH] tests: Fix zero-copy tests (#2498) --- .github/workflows/reusable-tests.yaml | 2 +- tests/zero-copy/rust-toolchain.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/zero-copy/rust-toolchain.toml diff --git a/.github/workflows/reusable-tests.yaml b/.github/workflows/reusable-tests.yaml index e69c38a7da..e8f08f27cc 100644 --- a/.github/workflows/reusable-tests.yaml +++ b/.github/workflows/reusable-tests.yaml @@ -403,7 +403,7 @@ jobs: path: tests/declare-id - cmd: cd tests/typescript && anchor test --skip-lint && npx tsc --noEmit path: tests/typescript - - cmd: cd tests/zero-copy && anchor test --skip-lint && cd programs/zero-copy && cargo test-bpf + - cmd: cd tests/zero-copy && rustup toolchain install 1.66.1-x86_64-unknown-linux-gnu && anchor test --skip-lint && cd programs/zero-copy && cargo test-bpf path: tests/zero-copy - cmd: cd tests/chat && anchor test --skip-lint path: tests/chat diff --git a/tests/zero-copy/rust-toolchain.toml b/tests/zero-copy/rust-toolchain.toml new file mode 100644 index 0000000000..7bd4253328 --- /dev/null +++ b/tests/zero-copy/rust-toolchain.toml @@ -0,0 +1,3 @@ +# TODO: Remove when `cargo-test-sbf` works with stable Rust +[toolchain] +channel = "1.66.1-x86_64-unknown-linux-gnu"