Skip to content

Commit

Permalink
Set PowerShell console encoding to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Dec 1, 2024
1 parent fabce55 commit 3863d2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3863d2d

Please sign in to comment.