-
Notifications
You must be signed in to change notification settings - Fork 4
149 lines (132 loc) · 4.53 KB
/
build.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: HDILib conan builder
on:
push:
branches:
- master
- main
- stable/*
- release/*
- alpha/*
pull_request:
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
# for matrix check https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners
jobs:
cross-platform-build:
name: Cross platform build
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# This build is Debug + /analyze flag
#- name: Static Analysis Windows
# os: windows-2019
# compiler: msvc-2019
# build-cversion: 16
# build-config: Analysis
- name: Windows-msvc2019
os: windows-2019
compiler: msvc-2019
build-cversion: 16
build-runtime: MD
build-config: Release
build-arch: x86_64
- name: Windows-msvc2022
os: windows-2022
compiler: msvc-2022
build-cversion: 17
build-runtime: MD
build-config: Release
build-arch: x86_64
- name: Linux_gcc10
os: ubuntu-20.04
build-compiler: gcc
build-cversion: 10
build-config: Release
build-os: Linux
build-libcxx: libstdc++11
build-arch: x86_64
- name: Linux_gcc11
os: ubuntu-22.04
build-cc: gcc
build-cxx: g++
build-compiler: gcc
build-cversion: 11
build-config: Release
build-os: Linux
build-libcxx: libstdc++11
build-arch: x86_64
- name: Macos_xcode13.4
os: macos-12
build-compiler: apple-clang
build-cversion: 13
build-config: Release
build-os: Macos
build-xcode-version: 13.4
build-libcxx: libc++
build-arch: x86_64
- name: Macos_xcode14.3
os: macos-13
build-compiler: apple-clang
build-cversion: 14
build-config: Release
build-os: Macos
build-xcode-version: 14.3
build-libcxx: libc++
build-arch: x86_64
- name: Macos_xcode15
os: macos-14
build-compiler: apple-clang
build-cversion: 15
build-config: Release
build-os: Macos
build-xcode-version: 15.4
build-libcxx: libc++
build-arch: armv8
steps:
- name: Checkout the source
uses: actions/checkout@v2
with:
submodules: recursive
- name: Select Xcode for Mac only
if: startsWith(runner.os, 'macOS')
run: |
sudo xcode-select -switch /Applications/Xcode_${{matrix.build-xcode-version}}.app
- name: Setup python version
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Setup gcc version
if: startsWith(matrix.build-compiler, 'gcc')
uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.build-cversion}}
platform: x64
- name: Windows build
if: startsWith(runner.os, 'Windows')
uses: ./.github/conan_windows_build
with:
conan-visual-version: ${{matrix.build-cversion}}
conan-build-type: ${{matrix.build-config}}
build-arch: ${{matrix.build-arch}}
conan-user: ${{secrets.LKEB_ARTIFACTORY_USER}}
conan-password: ${{secrets.LKEB_ARTIFACTORY_PASSWORD}}
hdilib-cdash-token: ${{secrets.HDILIB_TOKEN}}
- name: Linux Mac build
if: "!startsWith(runner.os, 'Windows')"
uses: ./.github/conan_linuxmac_build
with:
conan-compiler: ${{matrix.build-compiler}}
conan-compiler-version: ${{matrix.build-cversion}}
conan-libcxx-version: ${{matrix.build-libcxx}}
conan-build-type: ${{matrix.build-config}}
conan-build-os: ${{matrix.build-os}}
build-arch: ${{matrix.build-arch}}
conan-user: ${{secrets.LKEB_ARTIFACTORY_USER}}
conan-password: ${{secrets.LKEB_ARTIFACTORY_PASSWORD}}