Skip to content

Commit

Permalink
Update build-pypi-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-shaojun authored Aug 20, 2024
1 parent 107eb0a commit e832e32
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build-pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ on:
description: "If trigger release job for bigdl-core-xe"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-win:
description: "If trigger release job for bigdl-core-xe-win"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-batch:
description: "If trigger release job for bigdl-core-xe-batch"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-batch-win:
description: "If trigger release job for bigdl-core-xe-batch-win"
required: false
type: boolean
default: true
default: false
# The maximum inputs that the worflow_dispatch accepts is only 10, so we use release-bigdl-core-xe-addons-for-linux-and-windows to trigger both bigdl-core-xe-addons and bigdl-core-xe-addons-win
release-bigdl-core-xe-addons-for-linux-and-windows:
description: "If trigger release job for bigdl-core-xe-addons and bigdl-core-xe-addons-win"
required: false
type: boolean
default: true
default: false
# release-bigdl-core-xe-addons-win:
# description: "If trigger release job for bigdl-core-xe-addons-win"
# required: false
Expand All @@ -72,17 +72,17 @@ on:
description: "If trigger release job for bigdl-core-cpp"
required: false
type: boolean
default: true
default: false
release-bigdl-core-cpp-win:
description: "If trigger release job for bigdl-core-cpp-win"
required: false
type: boolean
default: true
default: false
release-bigdl-core-npu-win:
description: "If trigger release job for bigdl-core-npu-win"
required: false
type: boolean
default: true
default: false
workflow_call:
inputs:
pypi-version:
Expand All @@ -99,27 +99,27 @@ on:
description: "If trigger release job for bigdl-core-xe"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-win:
description: "If trigger release job for bigdl-core-xe-win"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-batch:
description: "If trigger release job for bigdl-core-xe-batch"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-batch-win:
description: "If trigger release job for bigdl-core-xe-batch-win"
required: false
type: boolean
default: true
default: false
release-bigdl-core-xe-addons-for-linux-and-windows:
description: "If trigger release job for bigdl-core-xe-addons and bigdl-core-xe-addons-win"
required: false
type: boolean
default: true
default: false
# release-bigdl-core-xe-addons-win:
# description: "If trigger release job for bigdl-core-xe-addons-win"
# required: false
Expand All @@ -134,20 +134,20 @@ on:
description: "If trigger release job for bigdl-core-cpp-win"
required: false
type: boolean
default: true
default: false
release-bigdl-core-npu-win:
description: "If trigger release job for bigdl-core-npu-win"
required: false
type: boolean
default: true
default: false


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

release-bigdl-core-xe:
runs-on: ubuntu-latest
if: ${{ ( github.event.schedule && inputs.release-bigdl-core-xe ) || ( github.event_name == 'workflow_dispatch' && (inputs.release-bigdl-core-xe == 'true')) || needs.paths-filter.outputs.xe == 'true'}}
if: ${{ ( github.event.schedule && inputs.release-bigdl-core-xe ) || ( github.event_name == 'workflow_dispatch' && inputs.release-bigdl-core-xe )) || ((github.event_name == 'push' || github.event_name == 'pull_request') && needs.paths-filter.outputs.xe == 'true') }}
strategy:
fail-fast: false
matrix:
Expand All @@ -157,6 +157,7 @@ jobs:
- name: Install build dependencies & build wheel
shell: bash
run: |
echo ${{ github.event.schedule }}
if [ ${{ github.event_name }} == "workflow_dispatch" ]; then
export nb_version=${{ inputs.pypi-version }}
else
Expand Down

0 comments on commit e832e32

Please sign in to comment.