Skip to content

Commit

Permalink
action:add condition to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Feb 14, 2025
1 parent 0c765cf commit dfd1e67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/Release-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ env:
versionSuffix: ${{ !contains(github.ref_name,'master') && 'alpha' || 'Release' }}
on:
workflow_dispatch:
inputs:
build_platform:
description: 'Platform to build (windows, macos, all)'
required: true
default: 'all'
push:
branches:
- dev
Expand All @@ -22,6 +27,7 @@ jobs:
matrix:
os: [macos-13,macos-14]
qt_ver: [ 6.6.3, 6.7.2 ]
if: github.event.inputs.build_platform == 'all' || github.event.inputs.build_platform == 'macos'
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -81,6 +87,7 @@ jobs:
matrix:
os: [windows-2022]
qt_ver: [ 6.6.3, 6.7.2 ]
if: github.event.inputs.build_platform == 'all' || github.event.inputs.build_platform == 'windows'
steps:
- uses: jurplel/install-qt-action@v4
with:
Expand Down

0 comments on commit dfd1e67

Please sign in to comment.