From d27fa3ba8525b8742c4b49d53402a0c88300018e Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Tue, 27 Jan 2026 02:47:55 +0100 Subject: [PATCH] extension_ci: Ensure specified target is installed (#47717) Follow up to #47714 because it is still broken for the extension workflows post #47699 cache introduction. Keeping the cache around though in the hopes that it will now finally work. Release Notes: - N/A --- .github/workflows/extension_tests.yml | 3 +++ tooling/xtask/src/tasks/workflows/extension_tests.rs | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.yml index d1aa004015383cc0b0ce8d461a196bc2ec86b233..3e2ef81f5bf7236b2df7b0a41e7cb22eb0546229 100644 --- a/.github/workflows/extension_tests.yml +++ b/.github/workflows/extension_tests.yml @@ -64,6 +64,9 @@ jobs: with: cache: rust path: ~/.rustup + - name: extension_tests::install_rust_target + run: rustup target add wasm32-wasip2 + shell: bash -euxo pipefail {0} - name: steps::cargo_fmt run: cargo fmt --all -- --check shell: bash -euxo pipefail {0} diff --git a/tooling/xtask/src/tasks/workflows/extension_tests.rs b/tooling/xtask/src/tasks/workflows/extension_tests.rs index c3de2e111acdd3b44753fbb44f1a71ee416aa58f..d1644a3cf280387ad43a7f27a81c0e95722741f7 100644 --- a/tooling/xtask/src/tasks/workflows/extension_tests.rs +++ b/tooling/xtask/src/tasks/workflows/extension_tests.rs @@ -46,6 +46,13 @@ pub(crate) fn extension_tests() -> Workflow { }) } +fn install_rust_target() -> Step { + named::bash(format!( + "rustup target add {rust_target}", + rust_target = extension::extension_builder::RUST_TARGET + )) +} + fn run_clippy() -> Step { named::bash("cargo clippy --release --all-targets --all-features -- --deny warnings") } @@ -57,6 +64,7 @@ fn check_rust() -> NamedJob { .timeout_minutes(6u32) .add_step(steps::checkout_repo()) .add_step(steps::cache_rust_dependencies_namespace()) + .add_step(install_rust_target()) .add_step(steps::cargo_fmt()) .add_step(run_clippy()) .add_step(steps::cargo_install_nextest())