2021-08-24 09:53:40 -04:00
|
|
|
# CI workflow building wxMSW under Windows.
|
|
|
|
name: MSW builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '.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'
|
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/osx/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/osx/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '.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'
|
|
|
|
- 'build/tools/appveyor*.bat'
|
|
|
|
- 'distrib/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'interface/**'
|
|
|
|
- 'include/wx/gtk/**'
|
|
|
|
- 'include/wx/osx/**'
|
|
|
|
- 'locale/**'
|
|
|
|
- 'src/gtk/**'
|
|
|
|
- 'src/osx/**'
|
|
|
|
- '*.md'
|
|
|
|
- '*.yml'
|
|
|
|
|
|
|
|
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-08-24 09:53:40 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
|
|
|
|
- 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
|