diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f5e0f23c8..98148685b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -24,6 +24,7 @@ jobs: name: > ${{ matrix.python }} wheel for ${{ matrix.os }} + ${{ (startsWith(matrix.python, '_stable' && 'stable ABI' || '' }} runs-on: ${{ matrix.os }} steps: @@ -57,8 +58,16 @@ jobs: run: | python -m cibuildwheel --output-dir wheelhouse - - name: Build stable ABI wheel - if: ${{ endsWith(matrix.python, '_stable') }} + - name: Build stable ABI wheel (UNIX) + if: ${{ endsWith(matrix.python, '_stable') }} && runner.os != 'Windows' + run: | + stable_cp=$(echo ${{ matrix.python }} | cut -d_ -f1) + echo "CIBW_BUILD=$(stable_cp)" >> $GITHUB_ENV + echo "CIBW_CONFIG_SETTINGS=\"wheel.py-api=cp312 cmake.args=-DDRJIT_STABLE_ABI=ON\"" >> $GITHUB_ENV + python -m cibuildwheel --output-dir wheelhouse + + - name: Build stable ABI wheel (Windows) + if: ${{ endsWith(matrix.python, '_stable') }} && runner.os == 'Windows' run: | stable_cp=$(echo ${{ matrix.python }} | cut -d_ -f1) echo "CIBW_BUILD=$(stable_cp)" >> $GITHUB_ENV