Change one of the MSW CI builds to use UTF-8
Cover a previously unused build configuration in the CI: UTF-8 with MSVS under MSW.
This commit is contained in:
parent
e733e28e7a
commit
ad29bdc6e4
1 changed files with 11 additions and 6 deletions
17
.github/workflows/ci_msw.yml
vendored
17
.github/workflows/ci_msw.yml
vendored
|
|
@ -67,6 +67,7 @@ jobs:
|
|||
- configuration: 'DLL Debug'
|
||||
platform: 'x64'
|
||||
vsversion: 2022
|
||||
use_utf8: true
|
||||
- configuration: 'Debug'
|
||||
platform: 'Win32'
|
||||
vsversion: 2019
|
||||
|
|
@ -81,14 +82,18 @@ jobs:
|
|||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Configure to use STL
|
||||
if: matrix.use_stl
|
||||
- name: Configure build options
|
||||
working-directory: include/wx/msw
|
||||
run: |
|
||||
$txt = Get-Content setup.h
|
||||
Write-Output $txt |
|
||||
%{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL 1"} |
|
||||
Set-Content setup.h
|
||||
$use_stl = "${{ matrix.use_stl }}" ? 1 : 0
|
||||
$use_utf8 = "${{ matrix.use_utf8 }}" ? 1 : 0
|
||||
if ( $use_stl -or $use_utf8 ) {
|
||||
$txt = Get-Content setup.h
|
||||
Write-Output $txt |
|
||||
%{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $use_stl"} |
|
||||
%{$_ -replace "define wxUSE_UNICODE_UTF8 0", "define wxUSE_UNICODE_UTF8 $use_utf8"} |
|
||||
Set-Content setup.h
|
||||
}
|
||||
|
||||
- name: Add MSBuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1.3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue