forked from UZDoom/UZDoom
-
Notifications
You must be signed in to change notification settings - Fork 0
142 lines (130 loc) · 4.45 KB
/
continuous_integration.yml
File metadata and controls
142 lines (130 loc) · 4.45 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
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
name: Continuous Integration
on: [push, pull_request]
jobs:
ci-success:
needs:
- debug
# - extra
if: always()
runs-on: ubuntu-latest
name: CI Success
steps:
- name: Check Status
run: |
[[ "${{ contains(needs.*.result, 'failure') }}" == "false" ]] || exit 1
[[ "${{ contains(needs.*.result, 'cancelled') }}" == "false" ]] || exit 1
debug:
name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
uses: ./.github/workflows/build_core.yml
secrets: inherit
with:
build_type: Debug
name: ${{ matrix.config.name }}
os: ${{ matrix.config.os }}
deps_cmdline: ${{ matrix.config.deps_cmdline }}
extra_options: ${{ matrix.config.extra_options }}
strategy:
fail-fast: false
matrix:
# these are shared between multiple build configs
config: &common_config
- name: Windows MSVC
os: windows-latest
extra_options: -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
deps_cmdline: |
choco install \
tree
# - name: Windows LLVM
# os: windows-latest
# extra_options: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_FLAGS="/arch:AVX /clang:-Wno-unused-command-line-argument" -DCMAKE_CXX_FLAGS="/arch:AVX /EHsc /GR /clang:-Wno-c++11-narrowing /clang:-Wno-unused-command-line-argument"
# deps_cmdline: |
# choco install \
# tree
- name: MacOS LLVM
os: macos-latest
extra_options: -DHAVE_VULKAN=ON -DHAVE_GLES2=OFF -DDYN_OPENAL=OFF -DOPENAL_INCLUDE_DIR=/opt/homebrew/opt/openal-soft/include/AL -DOPENAL_LIBRARY=/opt/homebrew/opt/openal-soft/lib/libopenal.dylib
deps_cmdline: |
brew install \
dylibbundler \
fluid-synth \
openal-soft \
vulkan-volk \
molten-vk \
libvpx \
sdl2 \
tree
- name: Linux GCC
os: ubuntu-latest
extra_options:
deps_cmdline: |
sudo apt-get update && sudo apt-get install \
libopenal-dev \
waylandpp-dev \
libsdl2-dev \
libwebp-dev \
libbz2-dev \
libomp-dev \
libvpx-dev
- name: Linux LLVM
os: ubuntu-latest
extra_options: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
deps_cmdline: |
sudo apt-get update && sudo apt-get install \
libopenal-dev \
waylandpp-dev \
libsdl2-dev \
libwebp-dev \
libbz2-dev \
libomp-dev \
libvpx-dev
# extra:
# name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
# needs: debug
# uses: ./.github/workflows/build_core.yml
# secrets: inherit
# with:
# name: ${{ matrix.config.name }}
# os: ${{ matrix.config.os }}
# deps_cmdline: ${{ matrix.config.deps_cmdline }}
# extra_options: ${{ matrix.config.extra_options }}
# build_type: ${{ matrix.config.build_type }}
# strategy:
# fail-fast: false
# matrix:
# config: # put bespoke configs here
# - name: Dummy
# os:
# extra_options:
# deps_cmdline:
# build_type:
# ======================
release:
name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
needs: ci-success
uses: ./.github/workflows/build_core.yml
secrets: inherit
with:
build_type: Release
name: ${{ matrix.config.name }}
os: ${{ matrix.config.os }}
deps_cmdline: ${{ matrix.config.deps_cmdline }}
extra_options: ${{ matrix.config.extra_options }}
strategy:
fail-fast: false
matrix:
config: *common_config
debinfo:
name: ${{ matrix.config.name }} ${{ matrix.config.build_type }}
needs: ci-success
uses: ./.github/workflows/build_core.yml
secrets: inherit
with:
build_type: RelWithDebInfo
name: ${{ matrix.config.name }}
os: ${{ matrix.config.os }}
deps_cmdline: ${{ matrix.config.deps_cmdline }}
extra_options: ${{ matrix.config.extra_options }}
strategy:
fail-fast: false
matrix:
config: *common_config