Manual - Beta (Device) #30
This file contains hidden or 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: CI / Password Manager | |
run-name: ${{ github.event_name == 'workflow_dispatch' && format('Manual - {0} ({1})', inputs.build-variant, inputs.build-mode) || 'CI' }} | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
build-variant: | |
description: "Build Variant" | |
required: true | |
default: "Beta" | |
type: choice | |
options: | |
- Beta | |
- Production | |
build-mode: | |
description: "Build Mode" | |
required: true | |
default: "Device" | |
type: choice | |
options: | |
- Device | |
- Simulator | |
version-name: | |
description: "Version Name Override - e.g. '2024.8.1'" | |
type: string | |
version-number: | |
description: "Version Number Override - e.g. '1021'" | |
type: string | |
compiler-flags: | |
description: "Compiler Flags - e.g. 'DEBUG_MENU FEATURE2'" | |
type: string | |
patch_version: #TODO: remove or replace with boolean to control | |
description: "Patch Version Override - e.g. '999'" | |
type: string | |
distribute: | |
description: "Distribute to TestFlight" | |
type: boolean | |
default: false #TODO: change to true before merging to main | |
xcode-version: | |
description: "Xcode Version Override - e.g. '15.2'" | |
type: string | |
jobs: | |
# version: | |
# name: Calculate Version Name and Number | |
# uses: bitwarden/ios/.github/workflows/_version.yml@monorepo/new-build #TODO: change to main | |
# with: | |
# base_version_number: 2000 | |
# version_name: ${{ inputs.version-name }} | |
# version_number: ${{ inputs.version-number }} | |
# patch_version: ${{ inputs.patch_version }} | |
# secrets: inherit | |
build-manual: | |
name: Build Manual - ${{ inputs.build-variant }} (${{ inputs.build-mode }}) | |
#needs: version | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: bitwarden/ios/.github/workflows/_build-any.yml@monorepo/new-build #TODO: change to main | |
with: | |
bw-env: ${{ (inputs.build-variant == 'Production') && 'bwpm_prod' || 'bwpm_beta' }} | |
build-mode: ${{ inputs.build-mode }} | |
version-name: ${{ needs.version.outputs.version_name || '2025.3.0' }} | |
version-number: ${{ needs.version.outputs.version_number || github.run_number }} #TODO: refactor all inputs to be consistent with - or _ | |
compiler-flags: ${{ inputs.compiler-flags }} | |
distribute: ${{ inputs.distribute }} | |
secrets: inherit | |
build-public: | |
name: Build CI | |
#needs: version | |
if: ${{ github.event_name == 'push' }} | |
uses: bitwarden/ios/.github/workflows/_build-any.yml@monorepo/new-build #TODO: change to main | |
strategy: | |
matrix: | |
include: | |
- bw-env: bwpm_prod | |
build-mode: Device | |
- bw-env: bwpm_prod | |
build-mode: Simulator | |
- bw-env: bwpm_beta | |
build-mode: Device | |
compiler-flags: DEBUG_MENU | |
with: | |
bw-env: ${{ matrix.bw-env }} | |
build-mode: ${{ matrix.build-mode }} | |
version-name: ${{ needs.version.outputs.version_name }} | |
version-number: ${{ needs.version.outputs.version_number }} | |
compiler-flags: ${{ matrix.compiler-flags }} | |
secrets: inherit |