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:
|
2023-11-17 15:54:03 +01:00
|
|
|
group: windows-${{ github.event_name == 'push' && github.sha || github.ref }}
|
2023-01-19 10:47:14 +01:00
|
|
|
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 }}'
|
2024-10-23 10:33:23 +02:00
|
|
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
2021-07-26 17:38:33 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout HEAD
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build tools
|
|
|
|
run: |
|
2024-10-23 10:33:23 +02:00
|
|
|
Set-PSDebug -Trace 1
|
2021-07-26 17:38:33 +02:00
|
|
|
& .\doc\win-dev.ps1
|
|
|
|
|
|
|
|
- name: Binary
|
|
|
|
run: |
|
2024-10-23 10:33:23 +02:00
|
|
|
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" }
|