forked from pygame-community/pygame-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from pygame-community/main
[pull] main from pygame-community:main
- Loading branch information
Showing
419 changed files
with
93,166 additions
and
102,932 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
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 |
---|---|---|
|
@@ -42,16 +42,16 @@ jobs: | |
|
||
# use the most recent cython from github, but pin on a commit for CI | ||
# stability. This is also needed to benefit from caching cython installs | ||
LATEST_CYTHON_COMMIT: 9366abc7d6700da7c98b3b1f169e4f2bfac28c54 | ||
LATEST_CYTHON_COMMIT: 2f3a781dcca092ce95fbfef2736b12b0d1ab50dd # cython 3.0.0 | ||
|
||
WHEELHOUSE_CYTHON: /tmp/wheelhouse/cython | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
- uses: actions/checkout@v4.1.1 | ||
|
||
- name: Cache Cython | ||
id: cache-cython | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
path: ${{ env.WHEELHOUSE_CYTHON }} | ||
key: wasm-ubuntu-cython-${{ env.LATEST_CYTHON_COMMIT }}-path-${{ env.WHEELHOUSE_CYTHON }} | ||
|
@@ -89,7 +89,7 @@ jobs: | |
# Upload the generated files under github actions assets section | ||
- name: Upload dist | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pygame-wasm-dist | ||
path: ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: MacOS | ||
name: macOS | ||
|
||
# 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 | ||
|
@@ -45,11 +45,11 @@ jobs: | |
macarch: [arm64, x86_64] | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
- uses: actions/checkout@v4.1.1 | ||
|
||
- name: Test for Mac Deps cache hit | ||
id: macdep-cache | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
# The hash of all files in buildconfig manylinux-build and macdependencies is | ||
|
@@ -68,7 +68,7 @@ jobs: | |
# Uncomment when you want to manually verify the deps by downloading them | ||
# - name: Upload Mac deps | ||
# uses: actions/upload-artifact@v3 | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: pygame-mac-deps-${{ matrix.macarch }} | ||
# path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
|
@@ -85,40 +85,34 @@ jobs: | |
# of these builds take roughly the same time | ||
include: | ||
- { | ||
name: "x86_64 (CPython 3.10 and above)", | ||
name: "x86_64 (CPython 3.9 - 3.12)", | ||
macarch: x86_64, | ||
# pattern matches any 2 digit number | ||
pyversions: "cp3[1-9][0-9]-*", | ||
cibw_platform: "macosx-10.11-x86_64" | ||
pyversions: "cp3{9,10,11,12}-*", | ||
} | ||
|
||
- { | ||
name: "x86_64 (Python 3.7)", | ||
name: "x86_64 (Python 3.8)", | ||
macarch: x86_64, | ||
pyversions: "?p37-*", | ||
cibw_platform: "macosx-10.11-x86_64" | ||
# CPython/PyPy 3.8 | ||
pyversions: "?p38-*", | ||
} | ||
|
||
- { | ||
name: "x86_64 (Python 3.8)", | ||
name: "x86_64 (PyPy 3.9 and 3.10)", | ||
macarch: x86_64, | ||
pyversions: "?p38-*", | ||
cibw_platform: "macosx-10.11-x86_64" | ||
pyversions: "pp39-* pp310-*", | ||
} | ||
|
||
- { | ||
name: "x86_64 (Python 3.9)", | ||
macarch: x86_64, | ||
pyversions: "?p39-*", | ||
cibw_platform: "macosx-10.11-x86_64" | ||
name: "arm64 (CPython 3.8 - 3.10)", | ||
macarch: arm64, | ||
pyversions: "cp3{8,9,10}-*", | ||
} | ||
|
||
- { | ||
name: "arm64 (CPython 3.8 and above)", | ||
name: "arm64 (CPython 3.11 - 3.12)", | ||
macarch: arm64, | ||
# pattern matches any number from 8 to 99 | ||
pyversions: "cp3{8,9,[1-9][0-9]}-*", | ||
cibw_platform: "macosx-11.0-arm64" | ||
pyversions: "cp3{11,12}-*", | ||
} | ||
|
||
env: | ||
|
@@ -128,25 +122,32 @@ jobs: | |
# also define environment variables needed for testing | ||
CIBW_ENVIRONMENT: PIP_CONFIG_FILE=buildconfig/pip_config.ini SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk | ||
|
||
# Tell CIBW that the wheel should be for 10.11 | ||
# Explicitly tell CIBW what the wheel arch deployment target should be | ||
# There seems to be no better way to set this than this env | ||
# We need this because our minimum is 10.11, different from default | ||
# of 10.9 on x86s | ||
# Related issue: https://github.com/pypa/cibuildwheel/issues/952 | ||
_PYTHON_HOST_PLATFORM: ${{ matrix.cibw_platform }} | ||
_PYTHON_HOST_PLATFORM: ${{ matrix.macarch == 'x86_64' && 'macosx-10.11-x86_64' || 'macosx-11.0-arm64'}} | ||
|
||
# Similarly, we need to tell CIBW that the wheel's linking steps | ||
# should be for 10.11 on x86 | ||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macarch == 'x86_64' && '10.11' || '11.0' }} | ||
|
||
CIBW_BUILD: ${{ matrix.pyversions }} | ||
|
||
# Build arm64 and x86_64 wheels too on an Intel runner. | ||
# Note that the arm64 wheels cannot be tested on CI in this configuration | ||
CIBW_ARCHS: ${{ matrix.macarch }} | ||
|
||
# Setup MacOS dependencies | ||
# Setup macOS dependencies | ||
CIBW_BEFORE_ALL: | | ||
brew install pkg-config | ||
cd buildconfig/macdependencies | ||
cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps | ||
bash ./install_mac_deps.sh | ||
CIBW_BEFORE_BUILD: | | ||
pip install requests numpy Sphinx | ||
pip install requests numpy Sphinx"<7.2.0" | ||
python setup.py docs | ||
cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps | ||
|
@@ -159,27 +160,28 @@ jobs: | |
CIBW_BUILD_VERBOSITY: 2 | ||
|
||
steps: | ||
- uses: actions/checkout@v3.5.3 | ||
- uses: actions/checkout@v4.1.1 | ||
|
||
- name: pip cache | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
path: ~/Library/Caches/pip # This cache path is only right on mac | ||
key: pip-cache-${{ matrix.name }} | ||
|
||
- name: Fetch Mac deps | ||
id: macdep-cache | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
path: ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} | ||
key: macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }} | ||
fail-on-cache-miss: true | ||
|
||
- name: Build and test wheels | ||
uses: pypa/cibuildwheel@v2.13.1 | ||
uses: pypa/cibuildwheel@v2.16.2 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: pygame-wheels-macos | ||
name: pygame-wheels-macos-${{ matrix.name }} | ||
path: ./wheelhouse/*.whl | ||
compression-level: 0 # wheels are already zip files, no need for more compression | ||
|
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
Oops, something went wrong.