Fail test #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
with: | |
vs-version: '16.0' | |
- name: Build | |
run: | | |
msbuild /p:Configuration=Release /p:Platform=x86 | |
msbuild /p:Configuration=Release /p:Platform=x64 | |
cd Tests | |
Get-ChildItem -Path *.vcxproj | ForEach-Object {& msbuild /p:Configuration=Release /p:Platform=x86 $_.FullName} | |
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
Get-ChildItem -Path *.vcxproj | ForEach-Object {& msbuild /p:Configuration=Release /p:Platform=x64 $_.FullName} | |
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
- name: Build Debug | |
run: | | |
msbuild /p:Configuration=Debug /p:Platform=x86 | |
msbuild /p:Configuration=Debug /p:Platform=x64 | |
cd Tests | |
$x86Build = Get-ChildItem -Path *.vcxproj | ForEach-Object {& msbuild /p:Configuration=Debug /p:Platform=x86 $_.FullName} | |
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
$x64Build = Get-ChildItem -Path *.vcxproj | ForEach-Object {& msbuild /p:Configuration=Debug /p:Platform=x64 $_.FullName} | |
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
if ($x86Build.ExitCode -ne 0 -or $x64Build.ExitCode -ne 0) { | |
Write-Host "Build failed in Build Debug." | |
exit 1 | |
} else { | |
Write-Host "Build succeeded." | |
} | |
- name: Display Build Results | |
run: | | |
Write-Host "x86 Build Result: $($x86Build.ExitCode)" | |
Write-Host "x64 Build Result: $($x64Build.ExitCode)" | |
- name: Finalize Build | |
run: | | |
if ($x86Build.ExitCode -ne 0 -or $x64Build.ExitCode -ne 0) { | |
Write-Host "Build failed." | |
exit 1 | |
} else { | |
Write-Host "Build succeeded." | |
} | |
- name: Test | |
run: | | |
cd Tests | |
Get-ChildItem -Path Win32\Release\*.exe | ForEach-Object {& $_.FullName -ErrorAction Stop} | |
Get-ChildItem -Path x64\Release\*.exe | ForEach-Object {& $_.FullName -ErrorAction Stop} | |
- name: Test Debug | |
run: | | |
cd Tests | |
Get-ChildItem -Path Win32\Debug\*.exe | ForEach-Object {& $_.FullName -ErrorAction Stop} | |
Get-ChildItem -Path x64\Debug\*.exe | ForEach-Object {& $_.FullName -ErrorAction Stop} | |
- name: Archive Libraries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Windows-Libraries | |
path: | | |
x86/Debug/*.lib | |
x64/Debug/*.lib | |
x86/Release/*.lib | |
x64/Release/*.lib |