build: allow mac pre-releases to fail

This commit is contained in:
Marcin Kurczewski 2024-04-04 01:04:08 +02:00
parent cfc3e02926
commit 6314a44794
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
3 changed files with 16 additions and 1 deletions

View file

@ -1,7 +1,13 @@
name: Build macOS app bundle and .dmg installer image name: Build macOS app bundle and .dmg installer image
on: on:
- workflow_call workflow_call:
inputs:
let_mac_fail:
description: "Do not require Mac builds to pass"
required: false
type: boolean
default: false
env: env:
FFMPEG_INSTALL_FUSED: /opt/local FFMPEG_INSTALL_FUSED: /opt/local
@ -12,6 +18,7 @@ env:
jobs: jobs:
build: build:
runs-on: macos-14 runs-on: macos-14
continue-on-error: ${{ inputs.let_mac_fail }}
steps: steps:
- name: Set up signing certificate - name: Set up signing certificate
env: env:

View file

@ -20,4 +20,5 @@ jobs:
draft: false draft: false
prerelease: true prerelease: true
tag_name: latest tag_name: latest
let_mac_fail: true
secrets: inherit secrets: inherit

View file

@ -30,6 +30,11 @@ on:
required: false required: false
default: "${{ github.ref }}" default: "${{ github.ref }}"
type: string type: string
let_mac_fail:
description: "Do not require Mac builds to pass"
required: false
type: boolean
default: false
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@ -94,6 +99,8 @@ jobs:
vars.RELEASE_ENABLE == 'true' && vars.RELEASE_ENABLE == 'true' &&
vars.MACOS_ENABLE == 'true' vars.MACOS_ENABLE == 'true'
uses: ./.github/workflows/build_macos.yml uses: ./.github/workflows/build_macos.yml
with:
let_mac_fail: ${{ inputs.let_mac_fail }}
secrets: inherit secrets: inherit
publish_release: publish_release: