Skip to content

Commit

Permalink
chore(workflows): split Python 3.13 and 3.13t builds
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Oct 2, 2024
1 parent 5717903 commit c68f341
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.9", "pypy-3.10"]
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t", "pypy-3.9", "pypy-3.10"]
archs: [
# Generic
"auto",
Expand Down Expand Up @@ -152,10 +152,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Determine Python version
shell: bash
run: |
PYTHON_VERSION="${{ matrix.python-version }}"
PYTHON_VERSION="${PYTHON_VERSION%t}"
echo "Using Python version: ${PYTHON_VERSION}"
echo "PYTHON_VERSION=${PYTHON_VERSION}" >> "${GITHUB_ENV}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ env.PYTHON_VERSION }}
update-environment: true
allow-prereleases: true

Expand All @@ -173,7 +181,21 @@ jobs:
run: python setup.py --version

- name: Set CIBW_BUILD
run: python .github/workflows/set_cibw_build.py
shell: bash
run: |
abitag="$(
python -c \
"import sys; print(
'{0.name[0]}p{1.major}{1.minor}'.format(
sys.implementation,
sys.version_info,
).lower(),
)"
)"
if [[ "${{ matrix.python-version }}" == *"t" ]]; then
abitag="${abitag}t"
fi
echo "CIBW_BUILD=*${abitag}-*" | tee -a "${GITHUB_ENV}"
- name: Set up QEMU
if: runner.os == 'Linux'
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/set_cibw_build.py

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.0
rev: v19.1.1
hooks:
- id: clang-format
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ endif()
if(MSVC)
string(
APPEND CMAKE_CXX_FLAGS
" /EHsc /bigobj"
" /Zc:preprocessor"
" /experimental:external /external:anglebrackets /external:W0"
" /Wall /Wv:19.40" # Visual Studio 2022 version 17.10
Expand Down

0 comments on commit c68f341

Please sign in to comment.