Skip to content

Commit ca408f5

Browse files
author
Snowy
committed
CI: Add linux build
1 parent 4ce4250 commit ca408f5

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

.github/workflows/build.yaml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,112 @@ jobs:
9191
name: "panda3d-windows-wheel"
9292
path: "panda3d-1.11.0-cp311-cp311-win_amd64.whl"
9393
if-no-files-found: "error"
94+
95+
build-linux:
96+
runs-on: ubuntu-latest
97+
steps:
98+
- name: Checkout files
99+
uses: actions/checkout@v4
100+
101+
- name: Setup Python
102+
uses: actions/setup-python@v4
103+
with:
104+
python-version: '3.11'
105+
106+
- name: Install Dependencies
107+
run: |
108+
sudo apt-get update && \
109+
sudo apt-get install -y \
110+
fakeroot \
111+
ffmpeg \
112+
libassimp-dev \
113+
libavformat-dev \
114+
libbullet-dev \
115+
libeigen3-dev \
116+
libgl1-mesa-dev \
117+
libgtk-3-dev \
118+
libode-dev \
119+
libopenal-dev \
120+
libopus-dev \
121+
libopusfile-dev \
122+
libsquish-dev \
123+
libswresample-dev \
124+
libswscale-dev \
125+
libvorbis-dev \
126+
nvidia-cg-toolkit \
127+
patchelf
128+
129+
- name: Build Panda
130+
run: |
131+
python makepanda/makepanda.py \
132+
--installer \
133+
--wheel \
134+
--optimize 3 \
135+
--lzma \
136+
--threads=4 \
137+
--nothing \
138+
--use-python \
139+
--use-direct \
140+
--use-gl \
141+
--use-gles \
142+
--use-gles2 \
143+
--use-dx9 \
144+
--use-tinydisplay \
145+
--use-nvidiacg \
146+
--use-egl \
147+
--use-eigen \
148+
--use-openal \
149+
--use-vorbis \
150+
--use-opus \
151+
--use-ffmpeg \
152+
--use-swscale \
153+
--use-swresample \
154+
--use-ode \
155+
--use-bullet \
156+
--use-pandaphysics \
157+
--use-speedtree \
158+
--use-zlib \
159+
--use-png \
160+
--use-jpeg \
161+
--use-tiff \
162+
--use-openexr \
163+
--use-squish \
164+
--use-assimp \
165+
--use-egg \
166+
--use-freetype \
167+
--use-harfbuzz \
168+
--use-openssl \
169+
--use-directcam \
170+
--use-vision \
171+
--use-gtk3 \
172+
--use-mfc \
173+
--use-wx \
174+
--use-fltk \
175+
--use-cocoa \
176+
--use-x11 \
177+
--use-pandatool \
178+
--use-pview \
179+
--use-deploytools \
180+
--use-skel \
181+
--use-pandafx \
182+
--use-pandaparticlesystem \
183+
--use-contrib \
184+
--use-sse2 \
185+
--use-neon \
186+
--use-toontown \
187+
--python-incdir="$pythonLocation/include" \
188+
--python-libdir="$pythonLocation/lib"
189+
190+
- name: "Upload Installer"
191+
uses: actions/upload-artifact@v4
192+
with:
193+
name: "panda3d-linux-installer"
194+
path: "panda3d1.11_1.11.0_amd64.deb"
195+
if-no-files-found: "error"
196+
197+
- name: "Upload Wheel"
198+
uses: actions/upload-artifact@v4
199+
with:
200+
name: "panda3d-linux-wheel"
201+
path: "panda3d-1.11.0-cp311-cp311-linux_x86_64.whl"
202+
if-no-files-found: "error"

0 commit comments

Comments
 (0)