mirror of
https://github.com/Icinga/icinga2.git
synced 2026-07-14 03:10:54 -04:00
Recently, the Windows Server 2025 image upgraded Visual Studio from v2022 to v2026. Our build setup is not prepared for this, so we must pin the OS image.
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Windows
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- 'support/*'
|
|
pull_request: {}
|
|
|
|
concurrency:
|
|
group: windows-${{ github.event_name == 'push' && github.sha || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
windows:
|
|
name: Windows
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
max-parallel: 1
|
|
matrix:
|
|
bits: [32, 64]
|
|
|
|
runs-on: windows-2022
|
|
|
|
env:
|
|
BITS: '${{ matrix.bits }}'
|
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
|
|
|
steps:
|
|
- name: Checkout HEAD
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build tools
|
|
run: |
|
|
Set-PSDebug -Trace 1
|
|
& .\doc\win-dev.ps1
|
|
|
|
- name: Turn on Problem Matcher
|
|
run: |
|
|
Write-Host "::add-matcher::.github/problem-matchers/msvc.json"
|
|
|
|
- name: Binary
|
|
run: |
|
|
Set-PSDebug -Trace 1
|
|
& .\tools\win32\load-vsenv.ps1
|
|
& powershell.exe .\tools\win32\configure.ps1
|
|
if ($LastExitCode -ne 0) { throw "Error during configure" }
|
|
& powershell.exe .\tools\win32\build.ps1
|
|
if ($LastExitCode -ne 0) { throw "Error during build" }
|
|
& powershell.exe .\tools\win32\test.ps1
|
|
if ($LastExitCode -ne 0) { throw "Error during test" }
|
|
|
|
- name: Show Log Files
|
|
if: ${{ always() }}
|
|
run: |
|
|
foreach ($file in Get-ChildItem -Recurse -Filter "*.log") {
|
|
Write-Host "::group::$($file.FullName)"
|
|
Get-Content $file.FullName
|
|
Write-Host "::endgroup::"
|
|
}
|