-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release workflows for Python 3.13, Ubuntu 24.04, etc
Add Python 3.13 to release workflows and update cibuildwheel to a release that uses 3.13-final. Run GitHub release workflow based on pushing tags or release/* branches. Building wheels based on the GitHub Release going live means the wheels take longer to appear than they need to. GitHub Action's macos-latest is now ARM, which we have to date built on Cirrus CI instead. Build on ubuntu-latest and macos-13 (which is x86_64) and add a script and step to check that architectures are as expected. GitHub's Ubuntu 24.04 image has fewer development packages pre-installed; ensure that libbz2 and liblzma development files are present. On macOS, wheels don't carry their own shared libraries, so avoid linking with the non-system-provided library libdeflate.dylib.
- Loading branch information
Showing
3 changed files
with
55 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh -e | ||
|
||
case $1 in | ||
ubuntu-*-arm) expected=arm ;; | ||
macos-13) expected=x86_64 ;; | ||
ubuntu-*) expected=x86_64 ;; | ||
macos-*) expected=arm ;; | ||
windows-*) expected=x86_64 ;; | ||
*) | ||
echo Unknown platform $1 >&2 | ||
exit 2 | ||
;; | ||
esac | ||
|
||
arch=$(uname -m) | ||
case $arch in | ||
arm*|aarch*) actual=arm ;; | ||
x86*) actual=x86_64 ;; | ||
*) | ||
echo Unrecognized uname result $arch >&2 | ||
exit 2 | ||
;; | ||
esac | ||
|
||
if test $actual = $expected | ||
then | ||
echo Running on $arch as expected | ||
exit 0 | ||
else | ||
echo Platform $arch is not the expected $expected >&2 | ||
exit 1 | ||
fi |