2021-07-26 17:38:33 +02:00
|
|
|
name: Windows
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- 'support/*'
|
|
|
|
pull_request: {}
|
|
|
|
|
2023-01-19 10:47:14 +01:00
|
|
|
concurrency:
|
|
|
|
group: windows-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-07-26 17:38:33 +02:00
|
|
|
jobs:
|
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
2022-06-29 16:29:28 +02:00
|
|
|
max-parallel: 1
|
2021-07-26 17:38:33 +02:00
|
|
|
matrix:
|
|
|
|
bits: [32, 64]
|
|
|
|
|
2022-02-04 14:09:52 +01:00
|
|
|
runs-on: windows-2019
|
2021-07-26 17:38:33 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
BITS: '${{ matrix.bits }}'
|
|
|
|
ICINGA_BUILD_TYPE: snapshot
|
|
|
|
UPSTREAM_GIT_URL: file://D:/a/icinga2/icinga2/.git
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout HEAD
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: windows-icinga2
|
|
|
|
run: |
|
|
|
|
git clone https://git.icinga.com/packaging/windows-icinga2.git
|
|
|
|
|
|
|
|
- name: Build tools
|
|
|
|
run: |
|
|
|
|
& .\doc\win-dev.ps1
|
|
|
|
|
|
|
|
- name: Source
|
|
|
|
run: |
|
|
|
|
git checkout -B master
|
|
|
|
cd windows-icinga2
|
|
|
|
& .\source.ps1
|
|
|
|
|
|
|
|
- name: Binary
|
|
|
|
working-directory: windows-icinga2
|
|
|
|
run: |
|
|
|
|
New-Item -ItemType Directory -Path 'C:\Program Files\Icinga2\WillBeRemoved' -ErrorAction SilentlyContinue
|
|
|
|
& .\build.ps1
|