mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-10 10:43:53 +01:00
Build the Python extension only for 3.14 outside pushes to main and releases
Pull requests and branch pushes build the extension for Python 3.14 only. Pushes to main and published releases keep building 3.12, 3.13 and 3.14: wheels skip the older versions via CIBW_SKIP, the conda PR build passes --python 3.14, and the Windows cmake build gets a python-version matrix. The docs build moves from 3.12 to 3.14.
This commit is contained in:
1 parent
0eca8328d7
commit
75e61b0852
4 files changed
+16
-3
No files matched your search
@@ -39,6 +39,8 @@ jobs:
|
||||
- name: Disable upload
|
||||
run: conda config --set anaconda_upload no
|
||||
|
||||
# Pull requests build only the newest Python; pushes to main build
|
||||
# every version listed in conda-recipe/conda_build_config.yaml
|
||||
- name: Build
|
||||
run: conda-build conda-recipe
|
||||
run: conda-build conda-recipe ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') && '--python 3.14' || '' }}
|
||||
|
||||
@@ -43,6 +43,10 @@ jobs:
|
||||
# statistics are printed after each wheel since the host cannot see them.
|
||||
- name: Build wheels
|
||||
env:
|
||||
# Pull requests and manual runs build only the newest Python; pushes
|
||||
# to main and releases build every version listed in pyproject.toml
|
||||
CIBW_SKIP: >-
|
||||
${{ !(github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'cp312-* cp313-*' || '' }}
|
||||
CIBW_ENVIRONMENT_WINDOWS: CMAKE_GENERATOR=Ninja
|
||||
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >-
|
||||
auditwheel repair -w {dest_dir} {wheel} && sccache --show-stats
|
||||
|
||||
@@ -9,6 +9,13 @@ jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Pushes to main build and test every supported Python; other runs
|
||||
# only the newest
|
||||
python-version: ${{ fromJSON((github.event_name == 'push' && github.ref == 'refs/heads/main') && '["3.12", "3.13", "3.14"]' || '["3.14"]') }}
|
||||
|
||||
env:
|
||||
# sccache keeps compiled objects in the GitHub Actions cache, so later
|
||||
# runs only recompile the translation units a change affects
|
||||
@@ -19,7 +26,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: "3.12"
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: python -m pip install ninja numpy matplotlib pytest pytest-check boost-histogram
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [ubuntu-latest, macos-latest]
|
||||
python-version: ["3.12",]
|
||||
python-version: ["3.14",]
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user