Skip to content

Commit 02e4710

Browse files
committed
Test with POSIX CFLAGS
1 parent e974570 commit 02e4710

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178

179179
test-docs:
180180
needs: [ruff, mypy, sdist]
181-
runs-on: ubuntu-24.04
181+
runs-on: ubuntu-26.04
182182
timeout-minutes: 15
183183
steps:
184184
- uses: libsdl-org/setup-sdl@1894460666e4fe0c6603ea0cce5733f1cca56ba1
@@ -201,6 +201,7 @@ jobs:
201201
run: pip install -e .
202202
env:
203203
TDL_BUILD: DEBUG
204+
CFLAGS: "-D_POSIX_C_SOURCE=2"
204205
- name: Test doc generation
205206
working-directory: docs
206207
run: python -m sphinx -T -E -W --keep-going . _build/html
@@ -296,7 +297,7 @@ jobs:
296297

297298
build-macos:
298299
needs: [ruff, mypy, sdist]
299-
runs-on: "macos-14"
300+
runs-on: "macos-26"
300301
timeout-minutes: 15
301302
strategy:
302303
fail-fast: true
@@ -329,6 +330,7 @@ jobs:
329330
CIBW_TEST_COMMAND: python -c "import tcod.context"
330331
CIBW_TEST_SKIP: "pp* *-macosx_arm64 *-macosx_universal2:arm64"
331332
MACOSX_DEPLOYMENT_TARGET: "10.13"
333+
CFLAGS: "-D_POSIX_C_SOURCE=202405L"
332334
- name: Remove asterisk from label
333335
env:
334336
PYTHON_DESC: ${{ matrix.python }}

0 commit comments

Comments
 (0)