added create pre-release option for manual builds (#33)

Signed-off-by: k4yt3x <i@k4yt3x.com>
pull/35/head
K4YT3X 3 years ago committed by GitHub
parent c97c3f9412
commit 1afad073bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ name: dvmhost-build
on:
workflow_dispatch:
inputs:
buildType:
build_type:
description: "CMake Build Type"
required: true
default: "Release"
@ -14,10 +14,14 @@ on:
- Debug
- RelWithDebInfo
- MinSizeRel
stripSymbols:
strip_symbols:
description: "Strip Symbols"
required: false
type: boolean
create_pre_release:
description: "Create Pre-Release"
required: false
type: boolean
push:
branches:
- master
@ -70,8 +74,8 @@ jobs:
run: |
build_args='-DENABLE_TUI_SUPPORT=0'
if [[ "${{ github.event_name }}" == 'push' ]]; then
build_args="$build_args -DCMAKE_BUILD_TYPE=${{ inputs.buildType }}"
if [[ "${{ inputs.stripSymbols }}" == 'true' ]]; then
build_args="$build_args -DCMAKE_BUILD_TYPE=${{ inputs.build_type }}"
if [[ "${{ inputs.strip_symbols }}" == 'true' ]]; then
build_args="$build_args -DCMAKE_C_FLAGS='-s' -DCMAKE_CXX_FLAGS='-s'"
fi
else
@ -98,7 +102,7 @@ jobs:
path: ${{ env.PACKAGENAME }}.zip
create-release:
if: ${{ github.event == 'push' }}
if: ${{ github.event.inputs.create_pre_release == 'true' }}
name: Create Release
needs: [setup, build]
runs-on: ubuntu-20.04
@ -115,7 +119,7 @@ jobs:
prerelease: true
upload:
if: ${{ github.event == 'push' }}
if: ${{ github.event.inputs.create_pre_release == 'true' }}
name: Upload
needs: [setup, build, create-release]
strategy:

Loading…
Cancel
Save

Powered by TurnKey Linux.