Skip to content

Commit 9dc2aa6

Browse files
authored
Merge pull request #1 from DarthMDev/master
build: build for macOS arm64
2 parents c430626 + 4e62586 commit 9dc2aa6

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,41 @@ 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+
--threads=4 \
178+
--everything \
179+
--use-toontown \
180+
--python-incdir="$pythonLocation/include" \
181+
--python-libdir="$pythonLocation/lib"
182+
183+
184+
- name: Upload Panda Binary
185+
env:
186+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187+
run: |
188+
gh release upload ${{ github.ref_name }} panda3d-1.11.0-cp311-cp311-macosx_11_0_arm64.whl

0 commit comments

Comments
 (0)