From 483e8af05e7bc9fb4a56c4a02b8bf4f91f3e5b78 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 25 May 2026 01:05:46 +0800 Subject: [PATCH] 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. --- .github/workflows/multi-platform-build.yml | 6 +++++- .github/workflows/unilabos-conda-build.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index 13f877c8..9187331a 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -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' diff --git a/.github/workflows/unilabos-conda-build.yml b/.github/workflows/unilabos-conda-build.yml index 0fc532b0..75ef3e48 100644 --- a/.github/workflows/unilabos-conda-build.yml +++ b/.github/workflows/unilabos-conda-build.yml @@ -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'