-
Notifications
You must be signed in to change notification settings - Fork 2
192 lines (169 loc) · 8.12 KB
/
linux3x.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
name: 🐧 Linux Builds 3x
on:
push:
pull_request:
schedule:
- cron: '0 23 * * *'
# Global Settings
env:
GODOT_BASE_BRANCH: 3.x
SCONSFLAGS: debug_symbols=yes
jobs:
build-linux:
runs-on: "ubuntu-22.04"
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
# - name: Editor Mono Sanitizers
# cache-name: linux3x-editor-mono-sanitizers
# target: debug
# tools: true
# tests: false
# sconsflags: module_mono_enabled=yes mono_glue=no use_ubsan=yes use_asan=yes
# build-mono: true
# bin: "./bin/godot.x11.tools.64s.mono"
# artifact: true
- name: Editor Sanitizers
cache-name: linux3x-editor-sanitizers
target: debug
tools: true
tests: false
sconsflags: use_ubsan=yes use_asan=yes
artifact: true
- name: Template Release Sanitizers
cache-name: linux3x-template-sanitizers
target: release
tools: false
tests: false
sconsflags: use_ubsan=yes use_asan=yes optimize=none
artifact: true
# - name: Editor Mono Normal
# cache-name: linux3x-editor-mono-normal
# target: debug
# tools: true
# tests: false
# sconsflags: module_mono_enabled=yes mono_glue=no
# build-mono: true
# bin: "./bin/godot.x11.tools.64.mono"
# artifact: true
- name: Editor Normal
cache-name: linux3x-editor-normal
target: debug
tools: true
tests: false
artifact: true
- name: Template Release Normal
cache-name: linux3x-template-normal
target: release
tools: false
tests: false
sconsflags: optimize=none
artifact: true
- name: Editor Minimal
cache-name: linux3x-editor-minimal
target: debug
tools: true
tests: false
sconsflags: module_bmp_enabled=no module_bullet_enabled=no module_camera_enabled=no module_csg_enabled=no module_cvtt_enabled=no module_dds_enabled=no module_denoise_enabled=no module_enet_enabled=no module_etc_enabled=no module_fbx_enabled=no module_gdnative_enabled=no module_gltf_enabled=no module_gridmap_enabled=no module_hdr_enabled=no module_jpg_enabled=no module_jsonrpc_enabled=no module_lightmapper_cpu_enabled=no module_mbedtls_enabled=no module_minimp3_enabled=no module_mobile_vr_enabled=no module_ogg_enabled=no module_opensimplex_enabled=no module_opus_enabled=no module_pvr_enabled=no module_raycast_enabled=no module_squish_enabled=no module_stb_vorbis_enabled=no module_tga_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_upnp_enabled=no module_vhacd_enabled=no module_visual_script_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_webp_enabled=no module_webrtc_enabled=no module_websocket_enabled=no module_webxr_enabled=no module_xatlas_unwrap_enabled=no module_regex_enabled=no
artifact: true
- name: Editor Minimal Sanitizers
cache-name: linux3x-editor-minimal-sanitizers
target: debug
tools: true
tests: false
sconsflags: module_bmp_enabled=no module_bullet_enabled=no module_camera_enabled=no module_csg_enabled=no module_cvtt_enabled=no module_dds_enabled=no module_denoise_enabled=no module_enet_enabled=no module_etc_enabled=no module_fbx_enabled=no module_gdnative_enabled=no module_gltf_enabled=no module_gridmap_enabled=no module_hdr_enabled=no module_jpg_enabled=no module_jsonrpc_enabled=no module_lightmapper_cpu_enabled=no module_mbedtls_enabled=no module_minimp3_enabled=no module_mobile_vr_enabled=no module_ogg_enabled=no module_opensimplex_enabled=no module_opus_enabled=no module_pvr_enabled=no module_raycast_enabled=no module_squish_enabled=no module_stb_vorbis_enabled=no module_tga_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_upnp_enabled=no module_vhacd_enabled=no module_visual_script_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_webp_enabled=no module_webrtc_enabled=no module_websocket_enabled=no module_webxr_enabled=no module_xatlas_unwrap_enabled=no module_regex_enabled=no use_ubsan=yes use_asan=yes
artifact: true
- name: Editor Thread Sanitizer
cache-name: linux3x-editor-thread-sanitizer
target: debug
tools: true
tests: true
sconsflags: use_tsan=yes module_webm_enabled=no module_webp_enabled=no module_lightmapper_cpu_enabled=no module_denoise_enabled=no module_webxr_enabled=no module_mobile_vr_enabled=no use_llvm=yes CCFLAGS="-O2"
artifact: true
- name: Editor Memory Sanitizer
cache-name: linux3x-editor-memory-sanitizer
target: debug
tools: true
tests: true
sconsflags: use_msan=yes debug_symbols=yes use_llvm=yes
artifact: true
# - name: Editor Mono Sanitizers LLVM
# cache-name: linux3x-editor-mono-sanitizers-llvm
# target: debug
# tools: true
# tests: false
# sconsflags: module_mono_enabled=yes mono_glue=no use_ubsan=yes use_asan=yes use_llvm=yes
# build-mono: true
# bin: "./bin/godot.x11.tools.64.llvms.mono"
# artifact: true
#
# - name: Editor Sanitizers LLVM
# cache-name: linux3x-editor-sanitizers-llvm
# target: debug
# tools: true
# tests: false
# sconsflags: use_ubsan=yes use_asan=yes use_llvm=yes
# bin: "./bin/godot.x11.tools.64.llvms"
# artifact: true
#
# - name: Template Release Sanitizers LLVM
# cache-name: linux3x-template-sanitizers-llvm
# target: release
# tools: false
# tests: false
# sconsflags: use_ubsan=yes use_asan=yes use_llvm=yes optimize=none
# bin: "./bin/godot.x11.opt.64.llvms"
# artifact: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: godotengine/godot
ref: ${{ env.GODOT_BASE_BRANCH }}
path: godot
- name: Linux dependencies
shell: bash
run: |
# Azure repositories are not reliable, we need to prevent azure giving us packages.
sudo rm -f /etc/apt/sources.list.d/*
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
sudo apt-get update
# The actual dependencies
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev \
libdbus-1-dev libudev-dev libxi-dev libxrandr-dev yasm xvfb wget unzip
- name: Setup Godot build cache
uses: ./.github/actions/godot-cache
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Setup python and scons
uses: ./.github/actions/godot-deps
- name: Compilation
run: |
ls
cd godot
scons ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} target=${{ matrix.target }} tools=${{ matrix.tools }} -j2
cd ..
# Generate mono glue
- name: Mono Glue Generator
if: ${{ matrix.build-mono }}
run: |
cd godot
DRI_PRIME=0 xvfb-run ${{ matrix.bin }} --headless --generate-mono-glue modules/mono/glue || true
cd ..
# Rebuild with mono
- name: Compilation Mono Glue
if: ${{ matrix.build-mono }}
run: |
cd godot
scons ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} target=${{ matrix.target }} tools=${{ matrix.tools }} mono_glue=yes -j2
ls bin/
cd ..
- name: Upload artifact
uses: ./.github/actions/upload-artifact
if: ${{ matrix.artifact }}
with:
name: ${{ matrix.cache-name }}