Skip to content

Commit

Permalink
Merge pull request #428 from lbluque/main
Browse files Browse the repository at this point in the history
Allow to input cibw skip in realease and build workflow
  • Loading branch information
lbluque authored Oct 1, 2023
2 parents 973a77c + dd54650 commit 12418af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: build-dist

on: [workflow_dispatch, workflow_call]
on:
workflow_dispatch:
inputs:
cibw_skip:
required: false
type: string
description: "wheels to skip building"

workflow_call:
inputs:
cibw_skip:
required: false
type: string
description: "wheels to skip building"

jobs:

Expand All @@ -12,7 +25,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
env:
CIBW_SKIP: pp* cp312-* ${{ github.event.inputs.CIBW_SKIP }}
CIBW_SKIP: pp* *i686 ${{ github.event.inputs.cibw_skip }}

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@ on:
required: true
type: boolean
default: true

workflow_dispatch:
inputs:
release-pypi:
required: true
type: boolean
description: "if true a release is made on PyPI"

cibw_skip:
required: false
type: string
description: "wheels to skip building"

jobs:
test:
uses: ./.github/workflows/test.yml

build:
needs: test
uses: ./.github/workflows/build.yml
with:
cibw_skip: ${{ github.event.inputs.cibw_skip }}

docs:
needs: test
Expand Down

0 comments on commit 12418af

Please sign in to comment.