@@ -44,10 +44,11 @@ jobs:
4444 sdist :
4545 runs-on : ubuntu-latest
4646 steps :
47- - name : APT update
48- run : sudo apt-get update
49- - name : Install APT dependencies
50- run : sudo apt-get install libsdl2-dev
47+ - uses : libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
48+ with :
49+ install-linux-dependencies : true
50+ build-type : " Debug"
51+ version : " 3.2.14"
5152 - uses : actions/checkout@v4
5253 with :
5354 fetch-depth : ${{ env.git-depth }}
7172 strategy :
7273 matrix :
7374 os : ["windows-latest", "macos-latest"]
74- sdl-version : ["2.0.14", "2.0.16", "2.30.0 "]
75+ sdl-version : ["3.2.10 "]
7576 fail-fast : true
7677 steps :
7778 - uses : actions/checkout@v4
9091 SDL_VERSION : ${{ matrix.sdl-version }}
9192
9293 build :
93- needs : [ruff, mypy]
94+ needs : [ruff, mypy, sdist ]
9495 runs-on : ${{ matrix.os }}
9596 strategy :
9697 matrix :
@@ -122,7 +123,13 @@ jobs:
122123 if : runner.os == 'Linux'
123124 run : |
124125 sudo apt-get update
125- sudo apt-get install libsdl2-dev xvfb
126+ sudo apt-get install xvfb
127+ - uses : libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
128+ if : runner.os == 'Linux'
129+ with :
130+ install-linux-dependencies : true
131+ build-type : " Release"
132+ version : " 3.2.14"
126133 - name : Install Python dependencies
127134 run : |
128135 python -m pip install --upgrade pip
@@ -157,13 +164,15 @@ jobs:
157164 compression-level : 0
158165
159166 test-docs :
160- needs : [ruff, mypy]
167+ needs : [ruff, mypy, sdist ]
161168 runs-on : ubuntu-latest
162169 steps :
163- - name : Install APT dependencies
164- run : |
165- sudo apt-get update
166- sudo apt-get install libsdl2-dev
170+ - uses : libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
171+ if : runner.os == 'Linux'
172+ with :
173+ install-linux-dependencies : true
174+ build-type : " Debug"
175+ version : " 3.2.14"
167176 - uses : actions/checkout@v4
168177 with :
169178 fetch-depth : ${{ env.git-depth }}
@@ -182,7 +191,7 @@ jobs:
182191 run : python -m sphinx -T -E -W --keep-going . _build/html
183192
184193 tox :
185- needs : [ruff]
194+ needs : [ruff, sdist ]
186195 runs-on : ${{ matrix.os }}
187196 strategy :
188197 matrix :
@@ -200,17 +209,18 @@ jobs:
200209 - name : Install Python dependencies
201210 run : |
202211 python -m pip install --upgrade pip tox
203- - name : Install APT dependencies
212+ - uses : libsdl-org/setup-sdl@6574e20ac65ce362cd12f9c26b3a5e4d3cd31dee
204213 if : runner.os == 'Linux'
205- run : |
206- sudo apt-get update
207- sudo apt-get install libsdl2-dev
214+ with :
215+ install-linux-dependencies : true
216+ build-type : " Debug"
217+ version : " 3.2.14"
208218 - name : Run tox
209219 run : |
210220 tox -vv
211221
212222 linux-wheels :
213- needs : [ruff, mypy]
223+ needs : [ruff, mypy, sdist ]
214224 runs-on : ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest'}}
215225 strategy :
216226 matrix :
@@ -248,7 +258,7 @@ jobs:
248258 CIBW_BEFORE_ALL_LINUX : >
249259 yum install -y epel-release &&
250260 yum-config-manager --enable epel &&
251- yum install -y SDL2 -devel
261+ yum install -y SDL3 -devel
252262 CIBW_BEFORE_TEST : pip install numpy
253263 CIBW_TEST_COMMAND : python -c "import tcod.context"
254264 # Skip test on emulated architectures
@@ -267,7 +277,7 @@ jobs:
267277 compression-level : 0
268278
269279 build-macos :
270- needs : [ruff, mypy]
280+ needs : [ruff, mypy, sdist ]
271281 runs-on : " macos-14"
272282 strategy :
273283 fail-fast : true
@@ -287,7 +297,7 @@ jobs:
287297 - name : Install Python dependencies
288298 run : pip install -r requirements.txt
289299 - name : Prepare package
290- # Downloads SDL2 for the later step.
300+ # Downloads SDL for the later step.
291301 run : python build_sdl.py
292302 - name : Build wheels
293303 uses : pypa/cibuildwheel@v2.23.3
0 commit comments