Port window.c to SDL3 #4693
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
# Run CI only when a release is created, on changes to main branch, or any PR | |
# to main. Do not run CI on any other branch. Also, skip any non-source changes | |
# from running on CI | |
on: | |
push: | |
branches: main | |
paths-ignore: | |
- 'docs/**' | |
- 'examples/**' | |
- '.gitignore' | |
- '*.rst' | |
- '*.md' | |
- '.github/workflows/*.yml' | |
# re-include current file to not be excluded | |
- '!.github/workflows/build-windows.yml' | |
pull_request: | |
branches: main | |
paths-ignore: | |
- 'docs/**' | |
- 'examples/**' | |
- '.gitignore' | |
- '*.rst' | |
- '*.md' | |
- '.github/workflows/*.yml' | |
# re-include current file to not be excluded | |
- '!.github/workflows/build-windows.yml' | |
# the github release drafter can call this workflow | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-windows | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: ${{ matrix.winarch }} | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false # if a particular matrix build fails, don't skip the rest | |
matrix: | |
include: | |
- { winarch: AMD64, msvc-dev-arch: x86_amd64 } | |
- { winarch: x86, msvc-dev-arch: x86 } | |
env: | |
CIBW_ARCHS: ${{ matrix.winarch }} | |
steps: | |
- uses: actions/[email protected] | |
- uses: TheMrMilchmann/setup-msvc-dev@v3 # this lets us use the developer command prompt on windows | |
with: | |
arch: ${{ matrix.msvc-dev-arch }} | |
- name: Install uv for speed | |
uses: yezz123/setup-uv@v4 | |
with: | |
uv-version: "0.5.4" | |
- name: Build and test wheels | |
uses: pypa/[email protected] | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pygame-wheels-windows-${{ matrix.winarch }} | |
path: ./wheelhouse/*.whl | |
compression-level: 0 # wheels are already zip files, no need for more compression |