Skip to content

Commit 765258c

Browse files
committed
CI: update macOS dependency to install pygame
When there's no pre-compiled package available on macOS, pip will try to build pygame, and this requires SDL2 headers, so always install sdl2 prior to installing pygame
1 parent 35db3d0 commit 765258c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-and-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ jobs:
8080
run: |
8181
brew tap dciabrin/ngdevkit
8282
brew install python3 --overwrite
83-
brew install automake ngdevkit-toolchain zip pkg-config
83+
brew install automake ngdevkit-toolchain zip pkg-config sdl2 sdl2_image
8484
$(brew --prefix python)/libexec/bin/pip install pygame --break-system-packages
8585
8686
- name: Build
8787
run: ./.github/scripts/build.sh
8888

8989
- name: Install dependencies for ngdevkit-examples
9090
run: |
91-
brew install ngdevkit-gngeo imagemagick sox glew sdl2 sdl2_image
91+
brew install ngdevkit-gngeo imagemagick sox glew
9292
$(brew --prefix python)/libexec/bin/pip install pyyaml --break-system-packages
9393
9494
- name: Test by compiling ngdevkit-examples

.github/workflows/build-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ jobs:
8080
run: |
8181
brew tap dciabrin/ngdevkit
8282
brew install python3 --overwrite
83-
brew install automake ngdevkit-toolchain zip pkg-config
83+
brew install automake ngdevkit-toolchain zip pkg-config sdl2 sdl2_image
8484
$(brew --prefix python)/libexec/bin/pip install pygame --break-system-packages
8585
8686
- name: Build
8787
run: ./.github/scripts/build.sh
8888

8989
- name: Install dependencies for ngdevkit-examples
9090
run: |
91-
brew install ngdevkit-gngeo imagemagick sox glew sdl2 sdl2_image
91+
brew install ngdevkit-gngeo imagemagick sox glew
9292
$(brew --prefix python)/libexec/bin/pip install pyyaml --break-system-packages
9393
9494
- name: Test by compiling ngdevkit-examples

0 commit comments

Comments
 (0)