Skip to content

Commit a33e563

Browse files
committed
build: build for macOS arm64
This builds a wheel that targets MacOS Apple Sillicon for panda3d
1 parent c430626 commit a33e563

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/build.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,65 @@ jobs:
148148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149149
run: |
150150
gh release upload ${{ github.ref_name }} panda3d-1.11.0-cp311-cp311-linux_x86_64.whl
151+
build-macos:
152+
runs-on: macos-latest
153+
permissions:
154+
contents: write # Needed for release upload
155+
steps:
156+
- name: Checkout files
157+
uses: actions/checkout@v4
158+
159+
- name: Setup Python
160+
uses: actions/setup-python@v4
161+
with:
162+
python-version: '3.11'
163+
164+
- name: Install Dependencies
165+
run: |
166+
brew install assimp eigen harfbuzz jpeg libpng ode openssl pkg-config libsquish wget
167+
# download thirdparty packages from https://www.panda3d.org/download/panda3d-1.10.14/panda3d-1.10.14-tools-mac.tar.gz
168+
# then copy the extracted thirdparty folder to root dir
169+
wget https://www.panda3d.org/download/panda3d-1.10.14/panda3d-1.10.14-tools-mac.tar.gz
170+
tar -xvf panda3d-1.10.14-tools-mac.tar.gz
171+
mv panda3d-1.10.14/thirdparty .
172+
173+
- name: Build Panda
174+
run: |
175+
python makepanda/makepanda.py \
176+
--wheel \
177+
--optimize 3 \
178+
--lzma \
179+
--threads=4 \
180+
--nothing \
181+
--use-python \
182+
--use-direct \
183+
--use-gl \
184+
--use-tinydisplay \
185+
--use-egl \
186+
--use-eigen \
187+
--use-ode \
188+
--use-pandaphysics \
189+
--use-zlib \
190+
--use-png \
191+
--use-jpeg \
192+
--use-squish \
193+
--use-assimp \
194+
--use-egg \
195+
--use-freetype \
196+
--use-harfbuzz \
197+
--use-openssl \
198+
--use-directcam \
199+
--use-skel \
200+
--use-pandaparticlesystem \
201+
--use-contrib \
202+
--use-sse2 \
203+
--use-toontown \
204+
--python-incdir="$pythonLocation/include" \
205+
--python-libdir="$pythonLocation/lib"
206+
207+
208+
- name: Upload Panda Binary
209+
env:
210+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
211+
run: |
212+
gh release upload ${{ github.ref_name }} panda3d-1.11.0-cp311-cp311-macosx_11_0_arm64.whl

0 commit comments

Comments
 (0)