feat: add cibuildwheel option to release workflow
- Add optional use_cibuildwheel parameter to release workflow - Create separate CI workflow for testing cibuildwheel - Support conditional build workflow selection in release process - This allows building wheels compatible with Google Colab and older systems - Maintains backward compatibility with existing build process
This commit is contained in:
12
.github/workflows/ci-cibuildwheel.yml
vendored
Normal file
12
.github/workflows/ci-cibuildwheel.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name: CI - cibuildwheel (Test)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
workflow_dispatch: # Allow manual triggering
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
uses: ./.github/workflows/build-cibuildwheel.yml
|
||||||
21
.github/workflows/release-manual.yml
vendored
21
.github/workflows/release-manual.yml
vendored
@@ -7,6 +7,11 @@ on:
|
|||||||
description: 'Version to release (e.g., 0.1.2)'
|
description: 'Version to release (e.g., 0.1.2)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
use_cibuildwheel:
|
||||||
|
description: 'Use cibuildwheel for better compatibility (recommended for Colab)'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-version:
|
update-version:
|
||||||
@@ -42,16 +47,26 @@ jobs:
|
|||||||
echo "commit-sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
|
echo "commit-sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
|
||||||
echo "✅ Pushed version update: $COMMIT_SHA"
|
echo "✅ Pushed version update: $COMMIT_SHA"
|
||||||
|
|
||||||
build-packages:
|
build-packages-reusable:
|
||||||
name: Build packages
|
name: Build packages (Standard)
|
||||||
needs: update-version
|
needs: update-version
|
||||||
|
if: ${{ !inputs.use_cibuildwheel }}
|
||||||
uses: ./.github/workflows/build-reusable.yml
|
uses: ./.github/workflows/build-reusable.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.update-version.outputs.commit-sha }}
|
ref: ${{ needs.update-version.outputs.commit-sha }}
|
||||||
|
|
||||||
|
build-packages-cibuildwheel:
|
||||||
|
name: Build packages (cibuildwheel)
|
||||||
|
needs: update-version
|
||||||
|
if: ${{ inputs.use_cibuildwheel }}
|
||||||
|
uses: ./.github/workflows/build-cibuildwheel.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.update-version.outputs.commit-sha }}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish and Release
|
name: Publish and Release
|
||||||
needs: build-packages
|
needs: [update-version, build-packages-reusable, build-packages-cibuildwheel]
|
||||||
|
if: always() && needs.update-version.result == 'success' && (needs.build-packages-reusable.result == 'success' || needs.build-packages-cibuildwheel.result == 'success')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
Reference in New Issue
Block a user