summaryrefslogtreecommitdiffstats
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
commit56ae875861ab260b80a030f50c4aff9f9dc8fff0 (patch)
tree531412110fc901a5918c7f7442202804a83cada9 /.github/workflows/windows.yml
parentInitial commit. (diff)
downloadicinga2-e6c8b97d844e301093c7e2c03da489629676e2c4.tar.xz
icinga2-e6c8b97d844e301093c7e2c03da489629676e2c4.zip
Adding upstream version 2.14.2.upstream/2.14.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..18d8e57
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,53 @@
+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-2019
+
+ 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