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.
This commit is contained in:
Xuwznln
2026-05-25 01:41:55 +08:00
parent 0403095c5b
commit 1acf0f2763
2 changed files with 4 additions and 0 deletions

View File

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

View File

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