Skip to content

Commit 56119b3

Browse files
ci: testing
1 parent 0afd3fd commit 56119b3

2 files changed

Lines changed: 100 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 99 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,46 @@ jobs:
217262
path: /Users/runner/work/pilotlight/pilotlight/out/pilotlight_macos.zip
218263
overwrite: true
219264

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

222289
runs-on: ubuntu-22.04
223290

291+
strategy:
292+
matrix:
293+
python-version: [ 3.14 ]
294+
224295
steps:
225296

226297
- name: Checkout
227298
uses: actions/checkout@v6
228299

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

@@ -247,6 +323,7 @@ jobs:
247323
sudo apt install libxinerama-dev
248324
sudo apt install libgl-dev
249325
sudo apt install libxi-dev
326+
python3 -m pip install pl-build
250327
251328
- name: Prep 1
252329
run: |
@@ -311,7 +388,6 @@ jobs:
311388
chmod +x build_distribute.sh
312389
./build_distribute.sh -c release || exit 1
313390
314-
315391
- name: Package Pilot Light
316392
run: |
317393
cd $GITHUB_WORKSPACE
@@ -326,3 +402,25 @@ jobs:
326402
name: pilotlight_release_linux
327403
path: /home/runner/work/pilotlight/pilotlight/out/pilotlight_linux_amd64.zip
328404
overwrite: true
405+
406+
- name: Check New Project
407+
shell: cmd
408+
run: |
409+
cd $GITHUB_WORKSPACE
410+
cd scripts
411+
python new_project.py ../../Test0 -c -hr
412+
python new_project.py ../../Test1 -c
413+
python new_project.py ../../Test2 -cpp -hr
414+
python new_project.py ../../Test3 -cpp
415+
cd ../../Test0/src
416+
chmod +x build_linux.sh
417+
./build_linux.sh || exit 1
418+
cd ../../Test1/src
419+
chmod +x build_linux.sh
420+
./build_linux.sh || exit 1
421+
cd ../../Test2/src
422+
chmod +x build_linux.sh
423+
./build_linux.sh || exit 1
424+
cd ../../Test3/src
425+
chmod +x build_linux.sh
426+
./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)