File: windows.yml

package info (click to toggle)
icinga2 2.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,032 kB
  • sloc: cpp: 97,877; sql: 3,261; cs: 1,636; yacc: 1,584; sh: 1,009; ansic: 890; lex: 420; python: 80; makefile: 62; javascript: 12
file content (59 lines) | stat: -rw-r--r-- 1,424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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-2025

    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: 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::"
          }