Skip to content

Commit 2e60033

Browse files
ci: testing
1 parent 0afd3fd commit 2e60033

2 files changed

Lines changed: 98 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,20 @@ jobs:
2424

2525
runs-on: windows-2022
2626

27+
strategy:
28+
matrix:
29+
python-version: [ 3.14 ]
30+
2731
steps:
2832

2933
- name: Checkout
3034
uses: actions/checkout@v6
3135

36+
- name: Setup Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
3241
- name: Retrieve submodules
3342
run: git submodule update --init --recursive
3443

@@ -37,6 +46,7 @@ jobs:
3746
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.4.350.0/windows/vulkansdk-windows-X64-1.4.350.0.exe" -OutFile VulkanSDK.exe
3847
# ./VulkanSDK.exe --help
3948
./VulkanSDK.exe --accept-licenses --default-answer --root D:/a/VulkanSDK --confirm-command install
49+
python3 -m pip install pl-build
4050
4151
- name: Prep 1
4252
shell: cmd
@@ -121,16 +131,50 @@ jobs:
121131
path: D:\a\pilotlight\pilotlight\out\pilotlight_win32.zip
122132
overwrite: true
123133

134+
- name: Check New Project
135+
shell: cmd
136+
run: |
137+
set VULKAN_SDK=D:/a/VulkanSDK
138+
cd $GITHUB_WORKSPACE
139+
cd scripts
140+
python new_project.py ../../Test0 -c -hr
141+
python new_project.py ../../Test1 -c
142+
python new_project.py ../../Test2 -cpp -hr
143+
python new_project.py ../../Test3 -cpp
144+
cd ../../Test0/src
145+
call build_win32.bat
146+
if %ERRORLEVEL% NEQ 0 exit 1
147+
cd ../../Test1/src
148+
call build_win32.bat
149+
if %ERRORLEVEL% NEQ 0 exit 1
150+
cd ../../Test2/src
151+
call build_win32.bat
152+
if %ERRORLEVEL% NEQ 0 exit 1
153+
cd ../../Test3/src
154+
call build_win32.bat
155+
if %ERRORLEVEL% NEQ 0 exit 1
156+
157+
124158
MacOS:
125159

126160
runs-on: macos-26
127161
env:
128162
CXX: g++-10
163+
164+
strategy:
165+
matrix:
166+
python-version: [ 3.14 ]
167+
129168
steps:
130169

131170
- name: Checkout
132171
uses: actions/checkout@v6
133172

173+
- name: Setup Python ${{ matrix.python-version }}
174+
uses: actions/setup-python@v5
175+
with:
176+
python-version: ${{ matrix.python-version }}
177+
134178
- name: Retrieve submodules
135179
run: git submodule update --init --recursive
136180

@@ -139,6 +183,7 @@ jobs:
139183
curl https://sdk.lunarg.com/sdk/download/1.4.350.0/mac/vulkansdk-macos-1.4.350.0.zip -o vk.zip
140184
unzip vk.zip
141185
sudo ./vulkansdk-macOS-1.4.350.0.app/Contents/MacOS/vulkansdk-macOS-1.4.350.0 --root ~/VulkanSDK/1.4.350.0 --accept-licenses --default-answer --confirm-command install com.lunarg.vulkan.core com.lunarg.vulkan.usr com.lunarg.vulkan.sdl2 com.lunarg.vulkan.glm com.lunarg.vulkan.volk com.lunarg.vulkan.vma com.lunarg.vulkan.ios
186+
python3 -m pip install pl-build
142187
143188
- name: Prep 1
144189
run: |
@@ -217,15 +262,45 @@ jobs:
217262
path: /Users/runner/work/pilotlight/pilotlight/out/pilotlight_macos.zip
218263
overwrite: true
219264

265+
- name: Check New Project
266+
run: |
267+
cd $GITHUB_WORKSPACE
268+
cd scripts
269+
python new_project.py ../../Test0 -c -hr
270+
python new_project.py ../../Test1 -c
271+
python new_project.py ../../Test2 -cpp -hr
272+
python new_project.py ../../Test3 -cpp
273+
cd ../../Test0/src
274+
chmod +x build_macos.sh
275+
./build_macos.sh || exit 1
276+
cd ../../Test1/src
277+
chmod +x build_macos.sh
278+
./build_macos.sh || exit 1
279+
cd ../../Test2/src
280+
chmod +x build_macos.sh
281+
./build_macos.sh || exit 1
282+
cd ../../Test3/src
283+
chmod +x build_macos.sh
284+
./build_macos.sh || exit 1
285+
220286
Ubuntu:
221287

222288
runs-on: ubuntu-22.04
223289

290+
strategy:
291+
matrix:
292+
python-version: [ 3.14 ]
293+
224294
steps:
225295

226296
- name: Checkout
227297
uses: actions/checkout@v6
228298

299+
- name: Setup Python ${{ matrix.python-version }}
300+
uses: actions/setup-python@v5
301+
with:
302+
python-version: ${{ matrix.python-version }}
303+
229304
- name: Retrieve submodules
230305
run: git submodule update --init --recursive
231306

@@ -247,6 +322,7 @@ jobs:
247322
sudo apt install libxinerama-dev
248323
sudo apt install libgl-dev
249324
sudo apt install libxi-dev
325+
python3 -m pip install pl-build
250326
251327
- name: Prep 1
252328
run: |
@@ -311,7 +387,6 @@ jobs:
311387
chmod +x build_distribute.sh
312388
./build_distribute.sh -c release || exit 1
313389
314-
315390
- name: Package Pilot Light
316391
run: |
317392
cd $GITHUB_WORKSPACE
@@ -326,3 +401,24 @@ jobs:
326401
name: pilotlight_release_linux
327402
path: /home/runner/work/pilotlight/pilotlight/out/pilotlight_linux_amd64.zip
328403
overwrite: true
404+
405+
- name: Check New Project
406+
run: |
407+
cd $GITHUB_WORKSPACE
408+
cd scripts
409+
python new_project.py ../../Test0 -c -hr
410+
python new_project.py ../../Test1 -c
411+
python new_project.py ../../Test2 -cpp -hr
412+
python new_project.py ../../Test3 -cpp
413+
cd ../../Test0/src
414+
chmod +x build_linux.sh
415+
./build_linux.sh || exit 1
416+
cd ../../Test1/src
417+
chmod +x build_linux.sh
418+
./build_linux.sh || exit 1
419+
cd ../../Test2/src
420+
chmod +x build_linux.sh
421+
./build_linux.sh || exit 1
422+
cd ../../Test3/src
423+
chmod +x build_linux.sh
424+
./build_linux.sh || exit 1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The fastest way to use Pilot Light is to generate a small standalone project.
5454
From the root of this repository:
5555

5656
```bash
57+
python -m pip install pl-build
5758
python scripts/new_project.py ../MyFirstProject
5859
```
5960
Then just run your platforms build script located in the **/src** directory of your new project. The binaries will be located in the **/out** directory. The Pilot Light directory is no longer needed. Running the script again will update your project with the newest Pilot Light files.

0 commit comments

Comments
 (0)