fix windows mamba install in conda workflows

Use the Windows mamba.bat entrypoint from Git Bash so the setup-miniconda wrapper does not break after recent runner updates.
This commit is contained in:
Xuwznln
2026-05-25 01:05:46 +08:00
parent 0b3c0e3c29
commit 483e8af05e
2 changed files with 10 additions and 2 deletions

View File

@@ -115,7 +115,11 @@ jobs:
- name: Install rattler-build and anaconda-client
if: steps.should_build.outputs.should_build == 'true'
run: |
mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y
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"
else
mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y
fi
- name: Show environment info
if: steps.should_build.outputs.should_build == 'true'

View File

@@ -108,7 +108,11 @@ jobs:
- name: Install rattler-build and anaconda-client
if: steps.should_build.outputs.should_build == 'true'
run: |
mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y
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"
else
mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y
fi
- name: Show environment info
if: steps.should_build.outputs.should_build == 'true'