-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/pygame-community/pygame-ce …
…into events-in-python
- Loading branch information
Showing
191 changed files
with
5,254 additions
and
1,802 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ env: | |
jobs: | ||
build-multiarch: | ||
name: Debian (Bookworm - 12) [${{ matrix.arch }}] | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
fail-fast: false # if a particular matrix build fails, don't skip the rest | ||
|
@@ -65,7 +65,7 @@ jobs: | |
- { arch: armv7, base_image: 'balenalib/raspberrypi3-debian:bookworm' } | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: Build sources and run tests | ||
uses: uraimo/[email protected] | ||
|
@@ -120,7 +120,7 @@ jobs: | |
test-armv7-on-armv6: | ||
needs: build-multiarch | ||
name: Debian (Bookworm - 12) [build - armv7, test - armv6] | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Download all multiarch artifacts | ||
uses: actions/download-artifact@v4 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,11 @@ jobs: | |
- { macarch: x86_64, os: macos-13 } | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: Test for Mac Deps cache hit | ||
id: macdep-cache | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.1.1 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
# The hash of all files in buildconfig manylinux-build and macdependencies is | ||
|
@@ -116,17 +116,17 @@ jobs: | |
CIBW_BEFORE_TEST: rm -rf ${{ github.workspace }}/pygame_mac_deps | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: pip cache | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.1.1 | ||
with: | ||
path: ~/Library/Caches/pip # This cache path is only right on mac | ||
key: pip-cache-${{ matrix.macarch }}-${{ matrix.os }} | ||
|
||
- name: Fetch Mac deps | ||
id: macdep-cache | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache@v4.1.1 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }} | ||
|
@@ -138,7 +138,7 @@ jobs: | |
uv-version: "0.4.10" | ||
|
||
- name: Build and test wheels | ||
uses: pypa/[email protected].1 | ||
uses: pypa/[email protected].3 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ concurrency: | |
jobs: | ||
build: | ||
name: ${{ matrix.arch }} | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -52,7 +52,7 @@ jobs: | |
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 | ||
|
@@ -75,7 +75,7 @@ jobs: | |
|
||
- name: Build and push Docker image | ||
if: steps.inspect.outcome == 'failure' | ||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 | ||
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 | ||
with: | ||
context: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base | ||
file: ${{ github.workspace }}/buildconfig/manylinux-build/docker_base/Dockerfile-${{ matrix.arch }} | ||
|
@@ -91,7 +91,7 @@ jobs: | |
CIBW_MANYLINUX_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }} | ||
CIBW_MANYLINUX_PYPY_I686_IMAGE: ghcr.io/${{ github.repository }}_i686:${{ steps.meta.outputs.version }} | ||
|
||
uses: pypa/[email protected].1 | ||
uses: pypa/[email protected].3 | ||
|
||
# We upload the generated files under github actions assets | ||
- name: Upload dist | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# SDL3 porting is WIP | ||
name: SDL3 build | ||
|
||
# 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-sdl3.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-sdl3.yml' | ||
|
||
# the github release drafter can call this workflow | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-ubuntu-sdist | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false # if a particular matrix build fails, don't skip the rest | ||
matrix: | ||
os: [ubuntu-24.04, windows-latest, macos-14] | ||
|
||
env: | ||
# Pip now forces us to either make a venv or set this flag, so we will do | ||
# this | ||
PIP_BREAK_SYSTEM_PACKAGES: 1 | ||
# We are using dependencies installed from apt | ||
PG_DEPS_FROM_SYSTEM: 1 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install deps (linux) | ||
if: matrix.os == 'ubuntu-24.04' | ||
run: sudo apt-get install libfreetype6-dev libportmidi-dev python3-dev | ||
|
||
- name: Install deps (mac) | ||
if: matrix.os == 'macos-14' | ||
run: brew install freetype portmidi | ||
|
||
# taken from https://wiki.libsdl.org/SDL3/Installation | ||
- name: Install SDL3 | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
git clone https://github.com/libsdl-org/SDL | ||
cd SDL | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
cmake --build . --config Release --parallel | ||
sudo cmake --install . --config Release | ||
- name: Make sdist and install it | ||
run: > | ||
python3 -m pip install . -v -Csetup-args=-Dsdl_api=3 | ||
-Csetup-args=-Dimage=disabled | ||
-Csetup-args=-Dmixer=disabled | ||
-Csetup-args=-Dfont=disabled | ||
# - name: Run tests | ||
# env: | ||
# SDL_VIDEODRIVER: "dummy" | ||
# SDL_AUDIODRIVER: "disk" | ||
# run: python3 -m pygame.tests -v --exclude opengl,music,timing --time_out 300 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
CIBW_ARCHS: ${{ matrix.winarch }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- uses: TheMrMilchmann/setup-msvc-dev@v3 # this lets us use the developer command prompt on windows | ||
with: | ||
|
@@ -62,7 +62,7 @@ jobs: | |
uv-version: "0.4.10" | ||
|
||
- name: Build and test wheels | ||
uses: pypa/[email protected].1 | ||
uses: pypa/[email protected].3 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,17 +30,22 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: pre-commit/[email protected] | ||
|
||
format-lint-code-check: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
|
||
env: | ||
# Pip now forces us to either make a venv or set this flag, so we will do | ||
# this | ||
PIP_BREAK_SYSTEM_PACKAGES: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: Install deps | ||
run: python3 -m pip install pylint sphinx"<7.2.0" | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/checkout@v4.2.1 | ||
|
||
- name: Pull all release assets | ||
uses: robinraju/[email protected] | ||
|
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
Oops, something went wrong.