From 3863d2d6e2dcc96663a54cfa42ad7f5f2a3c297d Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Oliveira" Date: Sun, 1 Dec 2024 11:32:00 -0300 Subject: [PATCH] Set PowerShell console encoding to utf8 --- .github/workflows/builds.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 2997c9e..57a6234 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -55,7 +55,14 @@ jobs: use-dotnet: false - name: Set GODOT_EXE on windows if: ${{ matrix.platform == 'windows' }} - run: echo "GODOT_EXE=C:\Users\runneradmin\godot\Godot_v4.3-stable_win64.exe" >> $env:GITHUB_ENV + run: | + echo "GODOT_EXE=C:\Users\runneradmin\godot\Godot_v4.3-stable_win64.exe" >> $env:GITHUB_ENV + if (!(Test-Path -Path $PROFILE)) { + New-Item -ItemType File -Path $PROFILE -Force + } + # Add UTF-8 encoding settings to the PowerShell profile + $content = '[console]::InputEncoding = [console]::OutputEncoding = [System.Text.UTF8Encoding]::new()' + Add-Content -Path $PROFILE -Value $content -Encoding UTF8 - name: Test if: ${{ matrix.float-precision == 'single' && matrix.target-type == 'template_debug' && (matrix.platform == 'linux' || matrix.platform == 'macos' || (matrix.platform == 'windows' && matrix.arch == 'x86_64')) }} run: make test -j