Skip to content

Commit

Permalink
update ci workflows to build wheels for python3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Oct 18, 2024
1 parent 815070e commit 95d0179
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# macos-13 runners are still x86_64, macos-14 (latest) are arm64; we want to build
# the x86_64 wheel on/for x86_64 macs
os: [macos-13, ubuntu-latest, windows-latest]
arch: [auto64]
include:
- os: macos-latest
arch: universal2
- os: windows-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.x
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Download pre-compiled libskia
Expand All @@ -60,7 +62,7 @@ jobs:
run: pip install cibuildwheel
- name: Build and Test Wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: skia_pathops-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl
Expand All @@ -70,7 +72,7 @@ jobs:
strategy:
matrix:
# aarch64 uses qemu so it's slow, build each py version in parallel jobs
python: [38, 39, 310, 311, 312]
python: [38, 39, 310, 311, 312, 313]
arch: [aarch64]
env:
# Skip building aarch64 wheels for musllinux until I figure out why I get
Expand Down Expand Up @@ -98,7 +100,7 @@ jobs:
run: pip install cibuildwheel
- name: Build and Test Wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: skia_pathops-${{ matrix.python }}-linux-${{ matrix.arch }}
path: wheelhouse/*.whl
Expand All @@ -122,9 +124,10 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Download artifacts from build jobs
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: wheelhouse/
merge-multiple: true
- name: Move wheels to dist/ directory
run: |
ls wheelhouse/*
Expand Down Expand Up @@ -156,13 +159,8 @@ jobs:
fi
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: "${{ runner.temp }}/release_notes.md"
draft: false
prerelease: ${{ env.IS_PRERELEASE }}
Expand Down

0 comments on commit 95d0179

Please sign in to comment.