From 19c20894759caffd5dba3925a3aefe0a4a4ea8fc Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 19 Feb 2024 15:47:46 -0300 Subject: [PATCH 1/2] Build transfer hook for downstream project --- ci/downstream-projects/func-spl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/downstream-projects/func-spl.sh b/ci/downstream-projects/func-spl.sh index 00da118e14f06e..76d0bcbf5e1c34 100755 --- a/ci/downstream-projects/func-spl.sh +++ b/ci/downstream-projects/func-spl.sh @@ -38,6 +38,9 @@ spl() { $CARGO_TEST_SBF --manifest-path "$program"/Cargo.toml done + # token hook example isn't built with `cargo build`, but it is necessary for `cargo test` + $CARGO_BUILD_SBF --manifest-path token/transfer-hook/example/Cargo.toml + # TODO better: `build.rs` for spl-token-cli doesn't seem to properly build # the required programs to run the tests, so instead we run the tests # after we know programs have been built From 3c66fca62f63e10093afbcabff14700e3cd809e0 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 21 Feb 2024 11:34:36 -0300 Subject: [PATCH 2/2] Add transfer hook example to programs list --- ci/downstream-projects/func-spl.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ci/downstream-projects/func-spl.sh b/ci/downstream-projects/func-spl.sh index 76d0bcbf5e1c34..d2581b70db9f66 100755 --- a/ci/downstream-projects/func-spl.sh +++ b/ci/downstream-projects/func-spl.sh @@ -5,6 +5,7 @@ spl() { # Mind the order! PROGRAMS=( instruction-padding/program + token/transfer-hook/example token/program token/program-2022 token/program-2022-test @@ -38,9 +39,6 @@ spl() { $CARGO_TEST_SBF --manifest-path "$program"/Cargo.toml done - # token hook example isn't built with `cargo build`, but it is necessary for `cargo test` - $CARGO_BUILD_SBF --manifest-path token/transfer-hook/example/Cargo.toml - # TODO better: `build.rs` for spl-token-cli doesn't seem to properly build # the required programs to run the tests, so instead we run the tests # after we know programs have been built