Skip to content

Commit 56eec32

Browse files
author
Snowy
committed
CI: Add windows build workflow
1 parent ad40ab0 commit 56eec32

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Build Engine"
2+
on: ["workflow_dispatch"]
3+
jobs:
4+
build-windows:
5+
runs-on: windows-latest
6+
steps:
7+
- name: "Checkout files"
8+
uses: actions/checkout@v4
9+
10+
- name: Download Thirdparty
11+
shell: powershell
12+
run: |
13+
$wc = New-Object System.Net.WebClient
14+
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.14/panda3d-1.10.14-tools-win64.zip", "thirdparty-tools.zip")
15+
Expand-Archive -Path thirdparty-tools.zip
16+
Move-Item -Path thirdparty-tools/panda3d-1.10.14/thirdparty -Destination .
17+
18+
- name: Build Panda
19+
shell: powershell
20+
run: |
21+
.\thirdparty\win-python3.12-x64\python.exe makepanda\makepanda.py --installer --wheel --optimize 3 --everything --msvc-version=14.3 --windows-sdk=10 --threads=4
22+
23+
- name: "Upload Installer"
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: "panda3d-windows-installer"
27+
path: "Panda3D-1.11.0-py3.12-x64.exe"
28+
if-no-files-found: "error"
29+
30+
- name: "Upload Wheel"
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: "panda3d-windows-wheel"
34+
path: "panda3d-1.11.0-cp312-cp312-win_amd64.whl"
35+
if-no-files-found: "error"

0 commit comments

Comments
 (0)