Manual Build: fixes/34 by @jhoyt4 with macports for x86: true arm64: true on free runners #420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Manual build" | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
inputs: | |
MYTHBRANCH: | |
type: choice | |
description: "Choose a MythTV Version" | |
options: | |
- "master" | |
- "fixes/34" | |
- "fixes/33" | |
- "fixes/32" | |
BUILD_x86_64: | |
type: boolean | |
description: "Build x86_64" | |
default: true | |
BUILD_ARM64: | |
type: boolean | |
description: "Build ARM64" | |
default: true | |
PKGMGR: | |
type: choice | |
description: "Choose a package manager" | |
options: | |
- "macports" | |
- "homebrew" | |
RUNNER_SELECT: | |
type: choice | |
description: "Select Runner Type" | |
options: | |
- "free" | |
- "paid" | |
- "all" | |
run-name: "Manual Build: ${{ inputs.mythbranch }} by @${{ github.actor }} | |
with ${{ inputs.PKGMGR }} for x86: ${{ inputs.BUILD_x86_64 }} arm64: | |
${{ inputs.BUILD_ARM64 }} on ${{ inputs.RUNNER_SELECT }} runners" | |
jobs: | |
check-inputs: | |
runs-on: 'macos-latest' | |
env: | |
mythbranch: ${{ inputs.MYTHBRANCH }} | |
BUILD_x86_64: ${{ inputs.BUILD_x86_64 }} | |
BUILD_ARM64: ${{ inputs.BUILD_ARM64 }} | |
steps: | |
- name: | |
run: | | |
outputSTR="Building MyhtvTV Branch $mythbranch for" | |
if [ $BUILD_x86_64 ]; then | |
outputSTR="$outputSTR x86_64" | |
fi | |
if [ $BUILD_ARM64 ]; then | |
outputSTR="$outputSTR ARM64" | |
fi | |
echo $outputSTR | |
build-mythtv-x86_64: | |
needs: check-inputs | |
if: ${{ github.event.inputs.BUILD_x86_64 == 'true' }} | |
uses: ./.github/workflows/build_sign_upload.yml | |
with: | |
BUILD_x86_64: true | |
BUILD_ARM64: false | |
USE_CCACHE: false | |
MYTHBRANCH: ${{ inputs.MYTHBRANCH }} | |
PKGMGR: ${{ inputs.PKGMGR }} | |
RUNNER_SELECT: ${{ inputs.RUNNER_SELECT }} | |
secrets: inherit | |
build-mythtv-arm64: | |
needs: check-inputs | |
if: ${{ github.event.inputs.BUILD_ARM64 == 'true' }} | |
uses: ./.github/workflows/build_sign_upload.yml | |
with: | |
BUILD_x86_64: false | |
BUILD_ARM64: true | |
USE_CCACHE: false | |
MYTHBRANCH: ${{ inputs.MYTHBRANCH }} | |
PKGMGR: ${{ inputs.PKGMGR }} | |
RUNNER_SELECT: ${{ inputs.RUNNER_SELECT }} | |
secrets: inherit |