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) - name: Force UTF-8 output (Windows)
run: | run: |
chcp.com 65001
echo "LANG=en_US.UTF-8" >> "$GITHUB_ENV" echo "LANG=en_US.UTF-8" >> "$GITHUB_ENV"
echo "LC_ALL=en_US.UTF-8" >> "$GITHUB_ENV" echo "LC_ALL=en_US.UTF-8" >> "$GITHUB_ENV"
@ -149,15 +148,19 @@ jobs:
- name: Runtime versions - name: Runtime versions
run: | run: |
chcp.com 65001
node -v node -v
npm -v npm -v
bun -v bun -v
- name: Capture node path - 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 - name: Enable corepack and pin pnpm
run: | run: |
chcp.com 65001
corepack enable corepack enable
corepack prepare pnpm@10.23.0 --activate corepack prepare pnpm@10.23.0 --activate
pnpm -v pnpm -v
@ -166,6 +169,7 @@ jobs:
env: env:
CI: true CI: true
run: | run: |
chcp.com 65001
export PATH="$NODE_BIN:$PATH" export PATH="$NODE_BIN:$PATH"
which node which node
node -v 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 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 }}) - name: Run ${{ matrix.task }} (${{ matrix.runtime }})
run: ${{ matrix.command }} run: |
chcp.com 65001
${{ matrix.command }}
macos-app: macos-app:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'