Feat: Option to manually specify the build type in the workflow (#2034)
* Python bindings: Fix upload-artifact actions * Github Action: Enable workflow_dispatch to manually trigger jobs to produce either Debug or Release builds
This commit is contained in:
14
.github/workflows/build-uc2.yml
vendored
14
.github/workflows/build-uc2.yml
vendored
@@ -1,6 +1,16 @@
|
||||
name: Build UC2
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
buildType:
|
||||
description: 'Build Type'
|
||||
required: false
|
||||
default: ''
|
||||
type: choice
|
||||
options:
|
||||
- 'Debug'
|
||||
- 'Release'
|
||||
push:
|
||||
paths-ignore:
|
||||
- ".gitignore"
|
||||
@@ -15,8 +25,8 @@ on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
# Build Debug mode if not tag release
|
||||
BUILD_TYPE: ${{ startsWith(github.ref, 'refs/tags') && 'Release' || 'Debug' }}
|
||||
# Specify build type either according to the tag release or manual override
|
||||
BUILD_TYPE: ${{ inputs.buildType != '' && inputs.buildType || startsWith(github.ref, 'refs/tags') && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
|
||||
Reference in New Issue
Block a user