Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
andife committed Jul 15, 2024
1 parent 8b107d1 commit 1f763a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
default: 'warning'
type: choice
options:
- manual_schedule
- version_with_date_testpypi


Expand All @@ -46,7 +47,7 @@ jobs:
# with:
# os: "linux_x86_64"
# currdate: ${{needs.determine-date.outputs.output1}}
# processmode: ${{inputs.processmode}}
# rocessmode: ${{inputs.processmodep}}


# call-workflow-ubuntu_aarch64:
Expand Down Expand Up @@ -78,6 +79,7 @@ jobs:
with:
os: "mac"
currdate: ${{needs.determine-date.outputs.output1}}
processmode: ${{inputs.processmode}}

# TODO: each for every OS?
# provenance:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on: # Specifies the event triggering the workflow
currdate: # for weekly
required: true
type: string
processmode:
required: true
type: string

# Use MACOSX_DEPLOYMENT_TARGET=11.0 to produce compatible wheel
env:
Expand All @@ -27,7 +30,7 @@ concurrency:

jobs:
build:
if: github.event_name != 'pull_request' || startsWith( github.base_ref, 'rel-') || contains( github.event.pull_request.labels.*.name, 'run release CIs')
if: github.event_name != 'pull_request' || startsWith( github.base_ref, 'rel-') || contains( github.event.pull_request.labels.*.name, 'run release CIs') || (inputs.processmode == 'manual_schedule')
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -145,7 +148,7 @@ jobs:
# Only triggered by weekly event on certain CI
- name: Build and upload source distribution to PyPI weekly
if: github.event_name == 'schedule' && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64'
if: (github.event_name == 'schedule' || inputs.processmode == 'manual_schedule') && matrix.python-version == '3.10' && matrix.target-architecture == 'arm64'
run: |
# Build and upload source distribution to PyPI
git clean -xdf
Expand Down

0 comments on commit 1f763a4

Please sign in to comment.