11name : macOS
22
3- # Run CI only when a release is created, on changes to main branch, or any PR
4- # to main. Do not run CI on any other branch. Also, skip any non-source changes
3+ # Run CI only when a release is created, on changes to main branch, or any PR
4+ # to main. Do not run CI on any other branch. Also, skip any non-source changes
55# from running on CI
66on :
77 push :
2727 - ' .github/workflows/*.yml'
2828 # re-include current file to not be excluded
2929 - ' !.github/workflows/build-macos.yml'
30-
30+
3131 # the github release drafter can call this workflow
3232 workflow_call :
3333
@@ -47,14 +47,14 @@ jobs:
4747 - { macarch: x86_64, os: macos-13 }
4848
4949 steps :
50- - uses : actions/checkout@v4.1.7
50+ - uses : actions/checkout@v4.2.2
5151
5252 - name : Test for Mac Deps cache hit
5353 id : macdep-cache
54- uses : actions/cache@v4.0.2
54+ uses : actions/cache@v4.2.0
5555 with :
5656 path : ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
57- # The hash of all files in buildconfig manylinux-build and macdependencies is
57+ # The hash of all files in buildconfig manylinux-build and macdependencies is
5858 # the key to the cache. If anything changes here, the deps are built again
5959 key : macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}-${{ matrix.os }}
6060 lookup-only : true
6464 if : steps.macdep-cache.outputs.cache-hit != 'true'
6565 run : |
6666 export MAC_ARCH="${{ matrix.macarch }}"
67- brew install coreutils pkg-config
67+ brew install coreutils
6868 cd buildconfig/macdependencies
6969 bash ./build_mac_deps.sh
7070
@@ -104,7 +104,6 @@ jobs:
104104
105105 # Setup macOS dependencies
106106 CIBW_BEFORE_ALL : |
107- brew install pkg-config
108107 cd buildconfig/macdependencies
109108 cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps
110109 bash ./install_mac_deps.sh
@@ -116,17 +115,17 @@ jobs:
116115 CIBW_BEFORE_TEST : rm -rf ${{ github.workspace }}/pygame_mac_deps
117116
118117 steps :
119- - uses : actions/checkout@v4.1.7
118+ - uses : actions/checkout@v4.2.2
120119
121120 - name : pip cache
122- uses : actions/cache@v4.0.2
121+ uses : actions/cache@v4.2.0
123122 with :
124123 path : ~/Library/Caches/pip # This cache path is only right on mac
125124 key : pip-cache-${{ matrix.macarch }}-${{ matrix.os }}
126125
127126 - name : Fetch Mac deps
128127 id : macdep-cache
129- uses : actions/cache@v4.0.2
128+ uses : actions/cache@v4.2.0
130129 with :
131130 path : ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }}
132131 key : macdep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/macdependencies/*.sh') }}-${{ matrix.macarch }}
@@ -135,14 +134,13 @@ jobs:
135134 - name : Install uv for speed
136135 uses : yezz123/setup-uv@v4
137136 with :
138- uv-version : " 0.2.22 "
137+ uv-version : " 0.5.4 "
139138
140139 - name : Build and test wheels
141- uses : pypa/cibuildwheel@v2.20 .0
140+ uses : pypa/cibuildwheel@v2.22 .0
142141
143142 - uses : actions/upload-artifact@v4
144143 with :
145144 name : pygame-wheels-macos-${{ matrix.macarch }}
146145 path : ./wheelhouse/*.whl
147146 compression-level : 0 # wheels are already zip files, no need for more compression
148-
0 commit comments