-
Notifications
You must be signed in to change notification settings - Fork 8
171 lines (157 loc) · 4.54 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
on:
push:
branches:
- godot-4.x
paths:
- '**.h'
- '**.cpp'
jobs:
linux:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Build binaries
run: |
sudo apt-get update
sudo apt-get install scons
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib
python3 build.py platform=linux
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_linux
path: ./addons/godot-flexbox/bin
android:
name: Build for Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Build binaries
run: |
sudo apt-get install scons
python3 build.py platform=android
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_android
path: ./addons/godot-flexbox/bin
macos:
name: Build for macOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Build binaries
run: |
brew install scons
python3 build.py platform=macos
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_macos
path: ./addons/godot-flexbox/bin
ios:
name: Build for iOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Build binaries
run: |
brew install scons
python3 build.py platform=ios
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_ios
path: ./addons/godot-flexbox/bin
windows:
name: Build for Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Build binaries
run: |
python -m pip install scons
python build.py platform=windows
shell: cmd
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_windows
path: ./addons/godot-flexbox/bin
web:
name: Build for Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Submodules
run: git submodule update --init --recursive
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v12
with:
version: 3.1.18
actions-cache-folder: './emsdk'
- name: Build binaries
run: |
sudo apt-get install scons
python3 build.py platform=web
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: bin_web
path: ./addons/godot-flexbox/bin
merge:
name: Merge
runs-on: ubuntu-latest
needs: [linux, android, macos, ios, windows, web]
steps:
- uses: actions/checkout@v3
- name: Download Linux binaries
uses: actions/download-artifact@v1
with:
name: bin_linux
- name: Download Android binaries
uses: actions/download-artifact@v1
with:
name: bin_android
- name: Download macOS binaries
uses: actions/download-artifact@v1
with:
name: bin_macos
- name: Download iOS binaries
uses: actions/download-artifact@v1
with:
name: bin_ios
- name: Download Windows binaries
uses: actions/download-artifact@v1
with:
name: bin_windows
- name: Download web binaries
uses: actions/download-artifact@v1
with:
name: bin_web
- name: Copy binaries
run: |
mkdir ./addons/godot-flexbox/bin
cp -r bin_linux/linux ./addons/godot-flexbox/bin/
cp -r bin_android/android ./addons/godot-flexbox/bin/
cp -r bin_macos/macos ./addons/godot-flexbox/bin/
cp -r bin_ios/ios ./addons/godot-flexbox/bin/
cp -r bin_windows/windows ./addons/godot-flexbox/bin/
cp -r bin_web/web ./addons/godot-flexbox/bin/
- name: Upload built package
uses: actions/upload-artifact@v3
with:
name: addons
path: ./addons