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:
Vadim Zeitlin
2021-08-24 17:53:15 +02:00
parent 4d465837e0
commit 5385c9ced1

View File

@@ -44,13 +44,15 @@ on:
jobs: jobs:
msw-vs2019: msw-vs2019:
runs-on: windows-2019 runs-on: windows-2019
name: wxMSW vs2019 ${{ matrix.configuration }}/${{ matrix.platform }} name: wxMSW vs2019 ${{ matrix.configuration }} ${{ matrix.platform }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- configuration: 'Debug' - configuration: 'Debug'
platform: 'Win32' platform: 'Win32'
- configuration: 'DLL Release'
platform: 'x64'
steps: steps:
- name: Checkout - name: Checkout
@@ -63,15 +65,20 @@ jobs:
- name: Build - name: Build
run: | 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 - name: Build minimal sample
run: | 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 - name: Build tests
run: | 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 - name: Run tests
working-directory: tests working-directory: tests
@@ -80,7 +87,7 @@ jobs:
- name: Build GUI tests - name: Build GUI tests
run: | 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 - name: Run GUI tests
working-directory: tests working-directory: tests