@@ -52,16 +52,26 @@ jobs:
5252 PG_DEPS_FROM_SYSTEM : 1
5353
5454 steps :
55- - uses : actions/checkout@v4.2.1
55+ - uses : actions/checkout@v4.2.2
5656
57- - name : Install deps (linux)
57+ - name : Install pygame deps (linux)
5858 if : matrix.os == 'ubuntu-24.04'
5959 run : sudo apt-get install libfreetype6-dev libportmidi-dev python3-dev
6060
61- - name : Install deps (mac)
61+ - name : Install pygame deps (mac)
6262 if : matrix.os == 'macos-14'
6363 run : brew install freetype portmidi
6464
65+ # taken from dependencies of the 'libsdl2-dev' package
66+ - name : Install SDL deps (linux)
67+ if : matrix.os == 'ubuntu-24.04'
68+ run : >
69+ sudo apt-get install libasound2-dev libdbus-1-dev libdecor-0-dev libdrm-dev
70+ libegl-dev libgbm-dev libgl-dev libgles-dev libibus-1.0-dev libpulse-dev
71+ libsamplerate0-dev libsndio-dev libudev-dev libwayland-dev libx11-dev
72+ libxcursor-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev
73+ libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev
74+
6575 # taken from https://wiki.libsdl.org/SDL3/Installation
6676 - name : Install SDL3
6777 if : matrix.os != 'windows-latest'
@@ -74,12 +84,13 @@ jobs:
7484 cmake --build . --config Release --parallel
7585 sudo cmake --install . --config Release
7686
77- - name : Make sdist and install it
78- run : >
79- python3 -m pip install . -v -Csetup-args=-Dsdl_api=3
80- -Csetup-args=-Dimage=disabled
81- -Csetup-args=-Dmixer=disabled
82- -Csetup-args=-Dfont=disabled
87+ - name : Build with SDL3
88+ run : python3 dev.py build --sdl3
89+
90+ # eventually we need to run all tests, but for now test that importing pygame
91+ # works
92+ - name : Test import works
93+ run : python3 -c 'import pygame'
8394
8495 # - name: Run tests
8596 # env:
0 commit comments