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.
This commit is contained in:
Xuwznln
2026-05-25 01:29:23 +08:00
parent 483e8af05e
commit 16c2a6099d
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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