From b95858d4d19780c844abe61d0975b5ca4d6460ae Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 23 Oct 2024 10:33:23 +0200 Subject: [PATCH] GHA: Windows: don't require git.icinga.com/packaging/windows-icinga2 "A little copying is better than a little dependency." - https://www.youtube.com/watch?v=PAAkCSZUG1c&t=9m28s (Gopherfest 2015 | Go Proverbs with Rob Pike) --- .github/workflows/windows.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 18d8e5757..5d682be3d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -25,29 +25,24 @@ jobs: env: BITS: '${{ matrix.bits }}' - ICINGA_BUILD_TYPE: snapshot - UPSTREAM_GIT_URL: file://D:/a/icinga2/icinga2/.git + CMAKE_BUILD_TYPE: RelWithDebInfo 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: | + Set-PSDebug -Trace 1 & .\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 + 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" }