Skip to content

Commit

Permalink
Simplify mac/windows CI a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Mar 22, 2024
1 parent badcd29 commit 9509420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
bash ./install_mac_deps.sh
CIBW_BEFORE_BUILD: |
pip install requests numpy Sphinx"<7.2.0"
pip install numpy Sphinx"<7.2.0"
python setup.py docs
cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,8 @@ jobs:
CIBW_BUILD: ${{ matrix.pyversions }}
CIBW_ARCHS: ${{ matrix.winarch }}

# Not sure if we can use this later. I had to move the docs into the steps section for it
# to be included in the wheel
# CIBW_BEFORE_BUILD: |
# call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
# set DISTUTILS_USE_SDK=1
# set MSSdk=1
# pip install setuptools wheel requests numpy Sphinx
# python setup.py docs
CIBW_BEFORE_BUILD: pip install numpy Sphinx"<7.2.0" && python setup.py docs

CIBW_TEST_COMMAND: python -m pygame.tests -v --exclude opengl,timing --time_out 300

# Increase pip debugging output
Expand All @@ -151,15 +145,9 @@ jobs:
- uses: TheMrMilchmann/setup-msvc-dev@v3 # this lets us use the developer command prompt on windows
with:
arch: ${{ matrix.msvc-dev-arch }}

- name: Build and test wheels
shell: cmd
run: |
set DISTUTILS_USE_SDK=1
set MSSdk=1
python -m pip install setuptools wheel requests numpy Sphinx"<7.2.0"
python setup.py docs
python -m pip --disable-pip-version-check install cibuildwheel==2.16.4
python -m cibuildwheel --output-dir wheelhouse
uses: pypa/[email protected]

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 9509420

Please sign in to comment.