Skip to content

Commit

Permalink
Separate build for pure and non pure python
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Oct 23, 2024
1 parent 382943b commit dfcfc65
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Empty file.
18 changes: 15 additions & 3 deletions .github/workflows/_build-wheel-release-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
default: 'PROJECT_NAME'
required: false
type: string
c_extension:
description: 'Whether the project has a C extension'
default: false
required: false
type: boolean
secrets:
PYPI_TOKEN:
description: 'PyPI token'
Expand All @@ -20,12 +25,19 @@ jobs:
tag-privilege-check:
uses: bobleesj/release-scripts/.github/workflows/_release_tag_privilege_check.yml@v0

build-package:
build-pure-python-package:
needs: [tag-privilege-check]
if: inputs.c_extension == 'true'
uses: bobleesj/release-scripts/.github/workflows/_build-non-pure-python-package.yml@v0

build-non-pure-python-package:
needs: [tag-privilege-check]
if: inputs.c_extension == 'false'
uses: bobleesj/release-scripts/.github/workflows/_build-pure-python-package.yml@v0

update-changelog:
needs: [build-package]
needs: [build-pure-python-package, build-non-pure-python-package]

if: "!contains(github.ref, 'rc')"
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit dfcfc65

Please sign in to comment.