From 1acf0f2763e17c3ef04288d72255c33dbf5af516 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Mon, 25 May 2026 01:41:55 +0800 Subject: [PATCH] fix windows conda run encoding in workflows Enable UTF-8 for later conda run commands so anaconda-client version output does not fail under the Windows code page. --- .github/workflows/multi-platform-build.yml | 2 ++ .github/workflows/unilabos-conda-build.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index 17ed346b..5d3496a0 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -121,6 +121,8 @@ jobs: mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi echo "CONDA_NO_PLUGINS=true" >> "$GITHUB_ENV" + echo "PYTHONUTF8=1" >> "$GITHUB_ENV" + echo "PYTHONIOENCODING=utf-8" >> "$GITHUB_ENV" - 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 40ec9c63..f269606c 100644 --- a/.github/workflows/unilabos-conda-build.yml +++ b/.github/workflows/unilabos-conda-build.yml @@ -114,6 +114,8 @@ jobs: mamba install -n build-env --override-channels -c conda-forge rattler-build anaconda-client -y fi echo "CONDA_NO_PLUGINS=true" >> "$GITHUB_ENV" + echo "PYTHONUTF8=1" >> "$GITHUB_ENV" + echo "PYTHONIOENCODING=utf-8" >> "$GITHUB_ENV" - name: Show environment info if: steps.should_build.outputs.should_build == 'true'