Migrate CI from Azure Pipelines to GitHub Actions
Some checks are pending
ci-build / build-source-dist (push) Waiting to run
ci-build / build-wheels (x64, macos-13, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Blocked by required conditions

* Add --quiet option

* First pass on github workflow for CI

* Comment out the 2nd job for now

* Changes and tweaks from what I learned in a test project

* We also need to run the dox command

* Set PYTHONUNBUFFERED in the workflow

* Copy sip.h when the siplib is (re)created, instead of later during the build

* generate version modules in cmd_sdist too

* More fixes for building an sdist in a clean folder

* install gettext

* sudo

* Add build-wheels job

* add apt update

* Explicitly install libunwind-dev to workaround a package dependency bug

* Split the generate and the sdist step into 2 steps.

* fixes for building sdist on Windows, and also enable some additional MSVC info when building

* Use ilammy/msvc-dev-cmd to set up MSVC

* Comment out some no longer needed debug prints

* Add remaining matrix entries

* Uninstall wxPython at the end of the test, turn off fail-fast.

* uninstall --yes

* Add builds for Python 3.12 and 3.13

* Pin setuptools to < 74 on Windows due to removal of setuptools.msvc

* Remove Azure pipelines

* Try building on macOS x86 (not ARM)

* Update actions versions to non-deprecated ones

* Use macOS 13 (-large images seem to not be available on free accounts)

* avoid using -latest to avoid surprises later

* fix typo

* Remove checkout step from matrix (shouldn't be needed?)

* Revert "Remove checkout step from matrix (shouldn't be needed?)"

This reverts commit 385ef5c832.

---------

Co-authored-by: Scott Talbert <swt@techie.net>
This commit is contained in:
Robin Dunn
2024-09-01 07:06:02 -07:00
committed by GitHub
parent 06b78e2072
commit f56d65daaa
9 changed files with 281 additions and 299 deletions

22
wscript
View File

@@ -16,7 +16,7 @@ try:
except ImportError:
from buildtools.backports.textwrap3 import indent
from buildtools.config import Config, runcmd, msg, getMSVCInfo
from buildtools.config import Config, runcmd, msg, getMSVCInfo, generateVersionFiles
cfg = Config(True)
#-----------------------------------------------------------------------------
@@ -537,22 +537,7 @@ def build(bld):
# Copy the license files from wxWidgets
updateLicenseFiles(cfg)
# create the package's __version__ module
with open(opj(cfg.PKGDIR, '__version__.py'), 'w') as fid:
fid.write("# This file was generated by wxPython's wscript.\n\n"
"VERSION_STRING = '%(VERSION)s'\n"
"MAJOR_VERSION = %(VER_MAJOR)s\n"
"MINOR_VERSION = %(VER_MINOR)s\n"
"RELEASE_NUMBER = %(VER_RELEASE)s\n"
"BUILD_TYPE = '%(BUILD_TYPE)s'\n\n"
"VERSION = (MAJOR_VERSION, MINOR_VERSION, RELEASE_NUMBER, '%(VER_FLAGS)s')\n"
% cfg.__dict__)
# and one for the demo folder too
with open('demo/version.py', 'w') as fid:
fid.write("# This file was generated by wxPython's wscript.\n\n"
"VERSION_STRING = '%(VERSION)s'\n"
% cfg.__dict__)
generateVersionFiles(cfg)
# copy the wx locale message catalogs to the package dir
cfg.build_locale_dir(opj(cfg.PKGDIR, 'locale'))
@@ -561,9 +546,6 @@ def build(bld):
for name in ['src/__init__.py', 'src/gizmos.py',]:
copy_file(name, cfg.PKGDIR, update=1, verbose=1)
# Copy sip's sip.h for distribution with wxPython's header
copy_file('sip/siplib/sip.h', 'wx/include/wxPython', update=1, verbose=1)
# Create the build tasks for each of our extension modules.
addRelwithdebugFlags(bld, 'siplib')
siplib = bld(