ci: fix Windows runner encoding (#569) (thanks @bjesuiter)

This commit is contained in:
Peter Steinberger 2026-01-09 14:39:24 +01:00
parent 6640b43876
commit 49a2db78c9

View File

@ -119,7 +119,6 @@ jobs:
- name: Force UTF-8 output (Windows)
run: |
chcp.com 65001
echo "LANG=en_US.UTF-8" >> "$GITHUB_ENV"
echo "LC_ALL=en_US.UTF-8" >> "$GITHUB_ENV"
@ -149,15 +148,19 @@ jobs:
- name: Runtime versions
run: |
chcp.com 65001
node -v
npm -v
bun -v
- name: Capture node path
run: echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV"
run: |
chcp.com 65001
echo "NODE_BIN=$(dirname \"$(node -p \"process.execPath\")\")" >> "$GITHUB_ENV"
- name: Enable corepack and pin pnpm
run: |
chcp.com 65001
corepack enable
corepack prepare pnpm@10.23.0 --activate
pnpm -v
@ -166,6 +169,7 @@ jobs:
env:
CI: true
run: |
chcp.com 65001
export PATH="$NODE_BIN:$PATH"
which node
node -v
@ -173,7 +177,9 @@ jobs:
pnpm install --ignore-scripts=false --config.engine-strict=false --config.enable-pre-post-scripts=true || pnpm install --ignore-scripts=false --config.engine-strict=false --config.enable-pre-post-scripts=true
- name: Run ${{ matrix.task }} (${{ matrix.runtime }})
run: ${{ matrix.command }}
run: |
chcp.com 65001
${{ matrix.command }}
macos-app:
if: github.event_name == 'pull_request'