-
-
Notifications
You must be signed in to change notification settings - Fork 83
111 lines (98 loc) · 3.87 KB
/
linux_builds.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
name: 🐧 Linux Builds
on:
push:
branches: [ godot-3.x ]
# Global Settings
env:
PROJECT_FOLDER: .
TARGET_PATH: demo/addons/godot-sqlite/bin/x11/
TARGET_NAME: libgdsqlite
TARGET: release
jobs:
linux-compilation:
name: Ubuntu 20.04 Compilation
runs-on: "ubuntu-20.04"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Install all packages (except scons)
- name: Configure dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
# Setup scons, print python version and scons version info, so if anything is broken it won't run the build.
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python --version
scons --version
- name: Compilation
run: |
mkdir -v -p ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}
cd ${{env.PROJECT_FOLDER}}
cd godot-cpp
scons platform=linux bits=64 target=${{env.TARGET}} generate_bindings=yes -j4
cd ..
scons platform=linux target=${{env.TARGET}} target_path=${{env.TARGET_PATH}} target_name=${{env.TARGET_NAME}}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: x11
path: ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}
linux-legacy-compilation:
name: Ubuntu 18.04 Compilation
runs-on: "ubuntu-18.04"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Install all packages (except scons)
- name: Configure dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential pkg-config libx11-dev libxcursor-dev \
libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
# Setup scons, print python version and scons version info, so if anything is broken it won't run the build.
- name: Configuring Python packages
run: |
python -c "import sys; print(sys.version)"
python -m pip install scons
python --version
scons --version
# Linux shared libraries are humongous (>70MB) for some reason.. don't forget to strip them!
- name: Compilation
run: |
mkdir -v -p ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}
cd ${{env.PROJECT_FOLDER}}
cd godot-cpp
scons platform=linux bits=64 target=${{env.TARGET}} generate_bindings=yes -j4
cd ..
scons platform=linux target=${{env.TARGET}} target_path=${{env.TARGET_PATH}} target_name=${{env.TARGET_NAME}}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: x11-legacy
path: ${{env.PROJECT_FOLDER}}/${{env.TARGET_PATH}}