From 16c2a6099d85d916f9d249c7c726df47ddf820c8 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 25 May 2026 01:29:23 +0800 Subject: [PATCH] fix windows mamba bat quoting in workflows Pass the mamba.bat command to cmd without nested escaped quotes so Git Bash does not produce an invalid program name. --- .github/workflows/multi-platform-build.yml | 2 +- .github/workflows/unilabos-conda-build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index 9187331a..cd9fadeb 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -116,7 +116,7 @@ jobs: if: steps.should_build.outputs.should_build == 'true' run: | if [[ "$RUNNER_OS" == "Windows" ]]; then - cmd //D //S //C "call \"%CONDA%\\condabin\\mamba.bat\" install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y" + cmd //D //S //C '%CONDA%\condabin\mamba.bat install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y' else mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi diff --git a/.github/workflows/unilabos-conda-build.yml b/.github/workflows/unilabos-conda-build.yml index 75ef3e48..ed94b366 100644 --- a/.github/workflows/unilabos-conda-build.yml +++ b/.github/workflows/unilabos-conda-build.yml @@ -109,7 +109,7 @@ jobs: if: steps.should_build.outputs.should_build == 'true' run: | if [[ "$RUNNER_OS" == "Windows" ]]; then - cmd //D //S //C "call \"%CONDA%\\condabin\\mamba.bat\" install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y" + cmd //D //S //C '%CONDA%\condabin\mamba.bat install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y' else mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi