Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 23 additions & 16 deletions .github/workflows/ios-selfhosted-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ name: iOS Self-hosted Nightly Build
on:
workflow_call:
inputs:
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false
# General
runner_label:
description: 'The custom label for the self-hosted runner to use for the build job.'
type: string
Expand All @@ -19,23 +12,36 @@ on:
description: 'Job timeout in minutes'
type: number
default: 30
xcconfig_path:
description: 'Path to the .xcconfig file. Selected secret properties will be appended to the end of this file.'
# Changelog
checkout_depth:
description: 'The depth of the git history to fetch for changelog generation.'
type: number
required: false
default: 100
changelog_fallback_lookback:
description: 'The amount of time to look back for merge commits when no previous build commit is found. Default is 24 hours.'
type: string
required: false
secret_properties:
description: 'Secrets in the format KEY = VALUE (one per line).'
default: '24 hours'
# Git LFS
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
# Export secrets
xcconfig_path:
description: 'Path to the .xcconfig file. Selected secret properties will be appended to the end of this file.'
type: string
required: false
required_keys:
description: 'Comma-separated list of required keys.'
type: string
required: false
changelog_fallback_lookback:
description: 'The amount of time to look back for merge commits when no previous build commit is found. Default is 24 hours.'
# Custom values
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false
default: '24 hours'

secrets:
MATCH_PASSWORD:
Expand Down Expand Up @@ -64,10 +70,11 @@ jobs:
id: detect_changes
uses: futuredapp/.github/.github/actions/universal-detect-changes-and-generate-changelog@main
with:
checkout_depth: ${{ inputs.checkout_depth }}
fallback_lookback: ${{ inputs.changelog_fallback_lookback }}

- name: Checkout
if: ${{ steps.detect_changes.outputs.skip_build == 'false' && inputs.use_git_lfs == 'true' }}
if: ${{ steps.detect_changes.outputs.skip_build == 'false' && inputs.use_git_lfs }}
uses: actions/checkout@v4
with:
lfs: ${{ inputs.use_git_lfs }}
Expand Down
47 changes: 27 additions & 20 deletions .github/workflows/ios-selfhosted-on-demand-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ name: iOS Self-hosted On-Demand Build
on:
workflow_call:
inputs:
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false
# General
runner_label:
description: 'The custom label for the self-hosted runner to use for the build job.'
type: string
Expand All @@ -19,27 +12,40 @@ on:
description: 'Job timeout in minutes'
type: number
default: 30
xcconfig_path:
description: 'Path to the .xcconfig file. Selected secret properties will be appended to the end of this file.'
# Changelog
changelog:
description: 'Will be used as TestFlight changelog'
type: string
required: false
secret_properties:
description: 'Secrets in the format KEY = VALUE (one per line).'
checkout_depth:
description: 'The depth of the git history to fetch for changelog generation.'
type: number
required: false
default: 100
changelog_fallback_lookback:
description: 'The amount of time to look back for merge commits when no previous build commit is found. Default is 24 hours.'
type: string
required: false
required_keys:
description: 'Comma-separated list of required keys.'
default: '24 hours'
# Git LFS
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
# Export secrets
xcconfig_path:
description: 'Path to the .xcconfig file. Selected secret properties will be appended to the end of this file.'
type: string
required: false
changelog:
description: 'Will be used as TestFlight changelog'
required_keys:
description: 'Comma-separated list of required keys.'
type: string
required: false
changelog_fallback_lookback:
description: 'The amount of time to look back for merge commits when no previous build commit is found. Default is 24 hours.'
# Custom values
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false
default: '24 hours'

secrets:
MATCH_PASSWORD:
Expand Down Expand Up @@ -69,10 +75,11 @@ jobs:
id: detect_changes
uses: futuredapp/.github/.github/actions/universal-detect-changes-and-generate-changelog@main
with:
checkout_depth: ${{ inputs.checkout_depth }}
fallback_lookback: ${{ inputs.changelog_fallback_lookback }}

- name: Checkout
if: ${{ inputs.use_git_lfs == 'true' || inputs.changelog != '' }}
if: ${{ inputs.use_git_lfs || inputs.changelog != '' }}
uses: actions/checkout@v4
with:
lfs: ${{ inputs.use_git_lfs }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ios-selfhosted-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ name: iOS Self-hosted Release
on:
workflow_call:
inputs:
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false
# General
runner_label:
description: 'The custom label for the self-hosted runner to use for the build job.'
type: string
Expand All @@ -19,18 +12,25 @@ on:
description: 'Job timeout in minutes'
type: number
default: 30
# Git LFS
use_git_lfs:
description: 'Whether to download Git-LFS files.'
type: boolean
default: false
# Export secrets
xcconfig_path:
description: 'Path to the .xcconfig file. Selected secret properties will be appended to the end of this file.'
type: string
required: false
secret_properties:
description: 'Secrets in the format KEY = VALUE (one per line).'
type: string
required: false
required_keys:
description: 'Comma-separated list of required keys.'
type: string
required: false
# Custom values
custom_values:
description: 'Custom string that can contains values specified in your workflow file. Those values will be placed into environment variable. Example: "CUSTOM-1: 1; CUSTOM-2: 2"'
type: string
required: false

secrets:
MATCH_PASSWORD:
Expand Down