mirror of https://github.com/Icinga/icinga2.git
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)
This commit is contained in:
parent
c6de69cfe4
commit
b95858d4d1
|
@ -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" }
|
||||
|
|
Loading…
Reference in New Issue