From 9f087c96b9e0fab953685f7c05c341191e5f0859 Mon Sep 17 00:00:00 2001 From: Danila Kupreenko <71517730+5headsmartbtw@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:40:05 +0300 Subject: [PATCH] ci: link synchronization for the XMA2 ABI smoke test Adapted from LeonidaReforge/Leonida#23 (e932888842afccb38695cab4ce6c4ff6ca8b0dd7). AI-assisted (Codex). --- .github/workflows/xma2-decoder.yml | 2 +- runtime/xma_decoder/README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/xma2-decoder.yml b/.github/workflows/xma2-decoder.yml index 60208ae425..ff4559c6a1 100644 --- a/.github/workflows/xma2-decoder.yml +++ b/.github/workflows/xma2-decoder.yml @@ -39,7 +39,7 @@ jobs: if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } $library = Join-Path $env:CARGO_TARGET_DIR "debug\leonida_xma2_decoder.lib" $smoke = Join-Path $env:RUNNER_TEMP "leonida-xma2-ffi-smoke.exe" - cl /nologo /std:c++20 /EHsc /W4 /DNDEBUG /I runtime/xma_decoder runtime/xma_decoder/tests/ffi_cpp_smoke.cpp $library "/Fe:$smoke" ws2_32.lib userenv.lib ntdll.lib + cl /nologo /std:c++20 /EHsc /W4 /DNDEBUG /I runtime/xma_decoder runtime/xma_decoder/tests/ffi_cpp_smoke.cpp $library "/Fe:$smoke" ws2_32.lib userenv.lib ntdll.lib synchronization.lib if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } & $smoke if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } diff --git a/runtime/xma_decoder/README.md b/runtime/xma_decoder/README.md index 9db8018104..67341e60aa 100644 --- a/runtime/xma_decoder/README.md +++ b/runtime/xma_decoder/README.md @@ -14,7 +14,9 @@ cargo test --manifest-path runtime/xma_decoder/Cargo.toml --locked cargo build --manifest-path runtime/xma_decoder/Cargo.toml --locked ``` -The C++ smoke test is run by the xma2-decoder workflow with MSVC. It links ws2_32, userenv, and ntdll for Rust's Windows standard library. +The `xma2-decoder` workflow builds and runs the C++ smoke test with MSVC. It links `ws2_32.lib`, `userenv.lib`, +`ntdll.lib`, and `synchronization.lib` for Rust's Windows standard library. `synchronization.lib` resolves the +`WaitOnAddress` and `WakeByAddress*` imports in the Rust static library. ## Use in the runtime