-
Notifications
You must be signed in to change notification settings - Fork 112
110 lines (96 loc) · 3.35 KB
/
linux_builds_deployment.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
name: 🐧 Linux Builds
on:
push:
paths:
- godot-engine/**
- .github/**
defaults:
run:
working-directory: ./godot-engine
# Global Settings
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=no module_text_server_fb_enabled=yes fontconfig=no
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
TSAN_OPTIONS: suppressions=misc/error_suppressions/tsan.txt
concurrency:
# workflow name - PR || fallback to unique run id, this happens when you're not building a PR
# this ensures all branches build properly and cancel their previous runs
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: "ubuntu-20.04" # MUST run on the old version for GLIBC compatibility
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Editor
cache-name: linux-editor
target: editor
sconsflags: arch=x86_64 debug_symbols=no optimize=speed production=yes
strip: false
bin: "./bin/godot.linuxbsd.editor.x86_64"
artifact-name: "MirrorGodotEditorLinux.x86_64"
artifact: true
tests: no
- name: Template
cache-name: linux-template
target: template_debug
strip: true
sconsflags: arch=x86_64 debug_symbols=no optimize=speed
bin: "./bin/godot.linuxbsd.template_debug.x86_64"
artifact-name: "linux_release.x86_64"
artifact: true
tests: no
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Godot build cache
uses: ./godot-engine/.github/actions/godot-cache
with:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Setup scons
shell: bash
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons==4.4.0
scons --version
- name: Setup GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Compilation
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: linuxbsd
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
- name: Strip binaries
if: ${{ matrix.strip }}
run: |
strip bin/godot.*
# - name: Shrink debug symbols
# if: ${{ !matrix.strip }}
# run: |
# # remove duplicate symbols from binary
# dwz ${{ matrix.bin }} -L none -o Middleman.debug
# # make the debug symbols compressed
# objcopy --compress-debug-sections Middleman.debug FinalMan.debug
# # overwrite the original file
# mv FinalMan.debug ${{ matrix.bin }}
- name: Prepare artifact
if: ${{ matrix.artifact }}
run: |
chmod +x bin/godot.*
mv ${{ matrix.bin }} bin/${{ matrix.artifact-name }}
- name: Upload artifact
uses: ./.github/actions/upload-artifact
if: ${{ matrix.artifact }}
with:
path: bin/${{ matrix.artifact-name }}
name: ${{ matrix.artifact-name }}