-
Notifications
You must be signed in to change notification settings - Fork 0
192 lines (159 loc) · 5.45 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
name: Build
on:
schedule:
- cron: '0 1 * * 1'
push:
branches:
- master
- dev
- feature/*
- dev/*
- fix/*
pull_request:
workflow_dispatch:
jobs:
Windows:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Retrieve submodules
run: git submodule update --init --recursive
- name: Install Dependencies
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe" -OutFile VulkanSDK.exe
./VulkanSDK.exe --accept-licenses --default-answer --confirm-command install
- name: Build Pilot Light
shell: cmd
run: |
set VULKAN_SDK=C:\VulkanSDK\1.3.224.1
cd $GITHUB_WORKSPACE
cd scripts
python gen_build.py
cd ../src
call build.bat
if not exist ../out/pilot_light.exe exit 1
if not exist ../out/app.dll exit 1
if not exist ../out/pl_graphics_ext.dll exit 1
if not exist ../out/pl_image_ext.dll exit 1
if not exist ../out/pl_stats_ext.dll exit 1
if not exist ../out/pl_debug_ext.dll exit 1
if not exist ../out/pl_job_ext.dll exit 1
if not exist ../out/pl_gpu_allocators_ext.dll exit 1
if not exist ../out/pl_resource_ext.dll exit 1
if not exist ../out/pl_ecs_ext.dll exit 1
if not exist ../out/pl_ref_renderer_ext.dll exit 1
if not exist ../out/pilotlight.lib exit 1
- name: Package Pilot Light
shell: cmd
run: |
cd $GITHUB_WORKSPACE
cd scripts
python package.py
- name: Upload Pilot Light
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: pilotlight_release
path: D:\a\pilotlight\pilotlight\out\pilotlight_win32.zip
overwrite: true
MacOS:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Retrieve submodules
run: git submodule update --init --recursive
- name: Build Pilot Light
run: |
cd $GITHUB_WORKSPACE
cd scripts
python3 gen_build.py
cd ../src
chmod +x build.sh
./build.sh
cd ..
cd out
chmod +x pilot_light
cd ..
test -f ./out/pilot_light || exit 1
test -f ./out/app.dylib || exit 1
test -f ./out/pl_stats_ext.dylib || exit 1
test -f ./out/pl_image_ext.dylib || exit 1
test -f ./out/pl_debug_ext.dylib || exit 1
test -f ./out/pl_graphics_ext.dylib || exit 1
test -f ./out/pl_job_ext.dylib || exit 1
test -f ./out/pl_gpu_allocators_ext.dylib || exit 1
test -f ./out/pl_resource_ext.dylib || exit 1
test -f ./out/pl_ecs_ext.dylib || exit 1
test -f ./out/pl_ref_renderer_ext.dylib || exit 1
test -f ./out/pilotlight.a || exit 1
- name: Package Pilot Light
run: |
cd $GITHUB_WORKSPACE
cd scripts
python3 package.py
- name: Upload Pilot Light
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: pilotlight_release
path: /Users/runner/work/pilotlight/pilotlight/out/pilotlight_macos.zip
overwrite: true
Ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Retrieve submodules
run: git submodule update --init --recursive
- name: Install Dependencies
run: |
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.224-focal.list https://packages.lunarg.com/vulkan/1.3.224/lunarg-vulkan-1.3.224-focal.list
sudo apt update
sudo apt install vulkan-sdk
sudo apt install libx11-dev
sudo apt install libxkbcommon-x11-dev
sudo apt install libx11-xcb-dev
sudo apt install libxcb-xfixes0-dev
sudo apt install libxcb-cursor-dev
sudo apt install libxcb-cursor0
sudo apt install libxcb-keysyms1-dev
- name: Build Pilot Light
run: |
cd $GITHUB_WORKSPACE
cd scripts
python3 gen_build.py
cd ../src
chmod +x build.sh
./build.sh
cd ..
cd out
chmod +x pilot_light
cd ..
test -f ./out/pilot_light || exit 1
test -f ./out/app.so || exit 1
test -f ./out/pl_graphics_ext.so || exit 1
test -f ./out/pl_image_ext.so || exit 1
test -f ./out/pl_stats_ext.so || exit 1
test -f ./out/pl_debug_ext.so || exit 1
test -f ./out/pl_job_ext.so || exit 1
test -f ./out/pl_gpu_allocators_ext.so || exit 1
test -f ./out/pl_resource_ext.so || exit 1
test -f ./out/pl_ecs_ext.so || exit 1
test -f ./out/pl_ref_renderer_ext.so || exit 1
test -f ./out/pilotlight.a || exit 1
- name: Package Pilot Light
run: |
cd $GITHUB_WORKSPACE
cd scripts
python3 package.py
pwd
- name: Upload Pilot Light
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: pilotlight_release
path: /home/runner/work/pilotlight/pilotlight/out/pilotlight_linux_amd64.zip
overwrite: true