-
Notifications
You must be signed in to change notification settings - Fork 45
89 lines (75 loc) · 2.1 KB
/
build-win.yml
File metadata and controls
89 lines (75 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: 'Windows builds'
on:
workflow_call:
inputs:
do_package:
required: false
type: boolean
default: false
do_package_symbols:
required: false
type: boolean
default: false
run_build:
required: true
type: boolean
push:
branches: [ 'main' ]
jobs:
build-win-x64:
runs-on: windows-2022
if: (inputs.run_build == true) || (github.event_name == 'push')
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup host
run: |
# HOTFIX: github hosted runners have upgraded to CMake 4.0.0 which
# breaks building yaml-cpp
choco uninstall cmake.install
choco install cmake --version 3.31.6
choco install -y ninja
choco install -y doxygen.install
pip install breathe==4.34.0
pip install sphinx==5.1.1
pip install sphinx-rtd-theme==1.0.0
shell: powershell
- name: Prepare build env on Windows
uses: ilammy/msvc-dev-cmd@v1.12.0
with:
arch: x64
toolset: 14.20
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: release
build-arch: x64
artifact-label: ${{ github.job }}
build-win-x32:
runs-on: windows-2022
if: inputs.run_build == true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup host
run: |
# HOTFIX: github hosted runners have upgraded to CMake 4.0.0 which
# breaks building yaml-cpp
choco uninstall cmake.install
choco install cmake --version 3.31.6
choco install -y ninja
choco install -y doxygen.install
pip install breathe==4.34.0
pip install sphinx==5.1.1
pip install sphinx-rtd-theme==1.0.0
shell: powershell
- name: Prepare build env on Windows
uses: ilammy/msvc-dev-cmd@v1.12.0
with:
arch: x86
toolset: 14.20
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: x86-release
artifact-label: ${{ github.job }}