Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
ubuntu-24.04-arm,
macos-15,
]
glibc: [2_28, 2_34]

fail-fast: false
runs-on: ${{ matrix.os }}
defaults:
Expand All @@ -37,7 +39,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.10"

- uses: abatilo/actions-poetry@v3

Expand All @@ -61,12 +63,17 @@ jobs:
run: |
ARCH=$(uname -m)
echo "ARCH_DEF=$ARCH" >> $GITHUB_ENV

echo "MANYLINUX_IMAGE_TARGET=ghcr.io/virtualcell/manylinux_${{ matrix.glibc }}_$ARCH:latest" >> $GITHUB_ENV
CIBW_BUILD_STRING="cp310-*${{ env.ARCH_DEF }} cp311-*${{ env.ARCH_DEF }} cp312-*${{ env.ARCH_DEF }} cp313-*${{ env.ARCH_DEF }}"
if [ "${{ matrix.glibc }}" = "2_34" ]; then
CIBW_BUILD_STRING="CIBW_BUILD_STRING cp314-*${{ env.ARCH_DEF }}"
fi
echo "CIBW_BUILD_TARGETS=$CIBW_BUILD_STRING" >> $GITHUB_ENV
- name: Run cibuildwheel
uses: pypa/cibuildwheel@v3.4.0
if: ${{ startsWith(matrix.os, 'ubuntu') }}
env:
CIBW_BUILD: "cp311-*${{ env.ARCH_DEF }} cp312-*${{ env.ARCH_DEF }} cp313-*${{ env.ARCH_DEF }} cp314-*${{ env.ARCH_DEF }}"
CIBW_BUILD: "${{ env.CIBW_BUILD_TARGETS }}"
# CIBW_BUILD_VERBOSITY_LINUX: 2

- name: Run cibuildwheel
Expand All @@ -75,7 +82,7 @@ jobs:
pip install cibuildwheel
cibuildwheel --debug-traceback --output-dir wheelhouse
env:
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
- name: Copy wheels to dist directory
run: |
mkdir -p dist
Expand Down
Loading
Loading