2021-08-24 09:53:40 -04:00
|
|
|
# CI workflow building wxMSW under Windows.
|
|
|
|
name: MSW builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-03 19:32:51 -04:00
|
|
|
- 3.2
|
2021-08-24 09:53:40 -04:00
|
|
|
paths-ignore:
|
2022-01-13 19:41:14 -05:00
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
2021-08-24 09:53:40 -04:00
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- '.github/workflows/ci_cmake.yml'
|
2021-08-28 17:30:35 -04:00
|
|
|
- '.github/workflows/ci_mac.yml'
|
2021-08-24 09:53:40 -04:00
|
|
|
- '.github/workflows/ci_msw_cross.yml'
|
2022-03-26 19:27:15 -04:00
|
|
|
- '.github/workflows/docs_update.yml'
|
2021-08-24 09:53:40 -04:00
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/osx/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/osx/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-07-03 19:32:51 -04:00
|
|
|
- 3.2
|
2021-08-24 09:53:40 -04:00
|
|
|
paths-ignore:
|
2022-01-13 19:41:14 -05:00
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
2021-08-24 09:53:40 -04:00
|
|
|
- '.github/workflows/ci.yml'
|
|
|
|
- '.github/workflows/ci_cmake.yml'
|
2021-08-28 17:30:35 -04:00
|
|
|
- '.github/workflows/ci_mac.yml'
|
2021-08-24 09:53:40 -04:00
|
|
|
- '.github/workflows/ci_msw_cross.yml'
|
2022-03-26 19:27:15 -04:00
|
|
|
- '.github/workflows/docs_update.yml'
|
2021-08-24 09:53:40 -04:00
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/osx/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/osx/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
|
|
|
|
2022-06-26 20:33:51 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-08-24 09:53:40 -04:00
|
|
|
jobs:
|
2021-08-24 11:54:49 -04:00
|
|
|
msw-msvs:
|
|
|
|
runs-on: windows-${{ matrix.vsversion }}
|
|
|
|
name: wxMSW vs${{ matrix.vsversion }} ${{ matrix.configuration }} ${{ matrix.platform }}
|
2021-08-24 09:53:40 -04:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-08-24 11:54:49 -04:00
|
|
|
- configuration: 'DLL Debug'
|
|
|
|
platform: 'x64'
|
|
|
|
vsversion: 2022
|
2021-08-24 09:53:40 -04:00
|
|
|
- configuration: 'Debug'
|
|
|
|
platform: 'Win32'
|
2021-08-24 11:54:49 -04:00
|
|
|
vsversion: 2019
|
2021-08-24 11:53:15 -04:00
|
|
|
- configuration: 'DLL Release'
|
|
|
|
platform: 'x64'
|
2021-08-24 11:54:49 -04:00
|
|
|
vsversion: 2019
|
2021-09-23 10:47:13 -04:00
|
|
|
use_stl: true
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
2021-09-23 10:47:13 -04:00
|
|
|
- name: Configure to use STL
|
|
|
|
if: matrix.use_stl
|
|
|
|
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
|
|
|
|
|
2021-08-24 09:53:40 -04:00
|
|
|
- name: Add MSBuild to PATH
|
2021-08-24 16:03:33 -04:00
|
|
|
uses: microsoft/setup-msbuild@v1.0.3
|
|
|
|
with:
|
|
|
|
vs-prerelease: true
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-08-24 11:53:15 -04:00
|
|
|
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} build\msw\wx_vc16.sln
|
|
|
|
if ( '${{ matrix.configuration }}'.IndexOf('DLL') -ne -1 ) {
|
|
|
|
$dlldir = Join-Path (Get-Location) 'lib\vc_${{ matrix.platform }}_dll'
|
|
|
|
Write-Output "Adding $dlldir to the PATH"
|
|
|
|
$dlldir | Out-File -Append $env:GITHUB_PATH
|
|
|
|
}
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
- name: Build minimal sample
|
|
|
|
run: |
|
2021-08-24 11:53:15 -04:00
|
|
|
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} samples\minimal\minimal_vc16.sln
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
- name: Build tests
|
|
|
|
run: |
|
2021-08-24 11:53:15 -04:00
|
|
|
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} tests\test_vc16.sln
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
working-directory: tests
|
|
|
|
run: |
|
|
|
|
.\vc*msw*\test.exe
|
|
|
|
|
|
|
|
- name: Build GUI tests
|
|
|
|
run: |
|
2021-08-24 11:53:15 -04:00
|
|
|
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} tests\test_gui_vc16.sln
|
2021-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
- name: Run GUI tests
|
|
|
|
working-directory: tests
|
|
|
|
run: |
|
|
|
|
.\vc*msw*\test_gui.exe
|