diff --git a/.gitea/workflows/build-windows.yml b/.gitea/workflows/build-windows.yml index 007d9dd98..8af453b81 100644 --- a/.gitea/workflows/build-windows.yml +++ b/.gitea/workflows/build-windows.yml @@ -131,10 +131,22 @@ jobs: # do read it during the build that follows. LIBCLANG_PATH: '${{ env.LLVM_HOME }}\bin' run: | - # Belt-and-suspenders: also prepend cargo-tools to PATH here, in case - # GITHUB_PATH propagation from the previous step doesn't take effect. - export PATH="/c/cargo-tools/bin:$PATH" - command -v flutter_rust_bridge_codegen || { echo "tool not on PATH; PATH=$PATH"; exit 1; } + set -e + + # Belt-and-suspenders: explicitly prepend the dirs we need so we don't + # depend on whatever PATH act_runner hands the bash step. Forward-slash + # form is what MSYS bash expects. + export PATH="/c/cargo-tools/bin:/c/Program Files/Git/cmd:/c/Program Files/Git/bin:$PATH" + + echo "== PATH visibility check ==" + echo "PATH=$PATH" + echo + echo "which git -> $(which git 2>&1 || echo MISSING)" + echo "which git.exe -> $(which git.exe 2>&1 || echo MISSING)" + echo "which flutter -> $(which flutter 2>&1 || echo MISSING)" + echo "which flutter_rust_bridge_codegen -> $(which flutter_rust_bridge_codegen 2>&1 || echo MISSING)" + echo "git --version -> $(git --version 2>&1 || echo FAILED)" + echo if [ ! -f "${LIBCLANG_PATH}/libclang.dll" ]; then echo "libclang.dll not found at ${LIBCLANG_PATH}" @@ -142,7 +154,10 @@ jobs: exit 1 fi - pushd flutter && flutter pub get && popd + pushd flutter + flutter pub get + popd + flutter_rust_bridge_codegen \ --llvm-path "${LLVM_HOME}" \ --rust-input ./src/flutter_ffi.rs \