Add DLL Release wxMSW CI build
Append the path to the directory containing the DLLs to PATH to allow the tests to find them. Also quote the value of the "Configuration" property as it may (and does) contain spaces.
This commit is contained in:
parent
4d465837e0
commit
5385c9ced1
1 changed files with 12 additions and 5 deletions
17
.github/workflows/ci_msw.yml
vendored
17
.github/workflows/ci_msw.yml
vendored
|
|
@ -44,13 +44,15 @@ on:
|
|||
jobs:
|
||||
msw-vs2019:
|
||||
runs-on: windows-2019
|
||||
name: wxMSW vs2019 ${{ matrix.configuration }}/${{ matrix.platform }}
|
||||
name: wxMSW vs2019 ${{ matrix.configuration }} ${{ matrix.platform }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- configuration: 'Debug'
|
||||
platform: 'Win32'
|
||||
- configuration: 'DLL Release'
|
||||
platform: 'x64'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -63,15 +65,20 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: |
|
||||
msbuild /noLogo /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} build\msw\wx_vc16.sln
|
||||
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
|
||||
}
|
||||
|
||||
- name: Build minimal sample
|
||||
run: |
|
||||
msbuild /noLogo /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} samples\minimal\minimal_vc16.sln
|
||||
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} samples\minimal\minimal_vc16.sln
|
||||
|
||||
- name: Build tests
|
||||
run: |
|
||||
msbuild /noLogo /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} tests\test_vc16.sln
|
||||
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} tests\test_vc16.sln
|
||||
|
||||
- name: Run tests
|
||||
working-directory: tests
|
||||
|
|
@ -80,7 +87,7 @@ jobs:
|
|||
|
||||
- name: Build GUI tests
|
||||
run: |
|
||||
msbuild /noLogo /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} tests\test_gui_vc16.sln
|
||||
msbuild /noLogo /m '/p:Configuration=${{ matrix.configuration }}' /p:Platform=${{ matrix.platform }} tests\test_gui_vc16.sln
|
||||
|
||||
- name: Run GUI tests
|
||||
working-directory: tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue