diff --git a/.github/workflows/CI-main.yml b/.github/workflows/CI-main.yml index 6d31aaf9f..2f6412d48 100644 --- a/.github/workflows/CI-main.yml +++ b/.github/workflows/CI-main.yml @@ -21,6 +21,8 @@ on: env: XCODE_VERSION: '15.4' DISTRIBUTE_TO_TESTFLIGHT: ${{ github.event_name == 'push' || inputs.distribute }} + INTERNAL_BETA_PATCH_NUMBER: 999 + jobs: resolve-values: name: "Resolve values" @@ -49,7 +51,7 @@ jobs: repo: ios owner: bitwarden workflow: _version.yml - workflow_inputs: '{"base_version_number": "1000", "version_name": "${{ inputs.build-version }}", "version_number": "${{ inputs.build-number }}", "patch_version": "${{ inputs.patch_version }}"}' + workflow_inputs: '{"base_version_number": "1500", "version_name": "${{ inputs.build-version }}", "version_number": "${{ inputs.build-number }}", "patch_version": "${{ inputs.patch_version }}"}' - name: Read version info id: version_info @@ -78,8 +80,8 @@ jobs: name: version-info path: version-info/version_info.json - build: - name: Build + build-public: + name: Build Public Apps needs: resolve-values uses: bitwarden/ios/.github/workflows/build.yml@main strategy: @@ -93,3 +95,27 @@ jobs: distribute: ${{ fromJSON(needs.resolve-values.outputs.distribute_to_testflight) }} upload_version_info: false secrets: inherit + + build-internal: + name: Build Internal App + runs-on: macos-14 + needs: resolve-values + steps: + - name: Set patch version for internal builds + id: fix-patch-version + run: | + version_name=${{ needs.resolve-values.outputs.build_version }} + internal_version_name="${version_name%.*}.${{ env.INTERNAL_BETA_PATCH_NUMBER }}" + echo "version_name=$internal_version_name" >> $GITHUB_OUTPUT + echo "::warning::Internal version name: $internal_version_name" + - name: Build + uses: bitwarden/ios/.github/workflows/build.yml@main + with: + build-variant: Beta + build-version: ${{ steps.fix-patch-version.outputs.version_name }} + build-number: ${{ needs.resolve-values.outputs.version_number }} + xcode-version: ${{ needs.resolve-values.outputs.xcode_version }} + distribute: ${{ fromJSON(needs.resolve-values.outputs.distribute_to_testflight) }} + upload_version_info: false + compiler-flags: "DEBUG_MENU" + secrets: inherit