build: split darwin/mas macOS publish jobs (#43766)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
This commit is contained in:
parent
ca3234064f
commit
95ae0aa8a4
2 changed files with 41 additions and 4 deletions
36
.github/workflows/macos-publish.yml
vendored
36
.github/workflows/macos-publish.yml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
generate-sas-token: 'true'
|
generate-sas-token: 'true'
|
||||||
|
|
||||||
publish-x64:
|
publish-x64-darwin:
|
||||||
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
||||||
needs: checkout-macos
|
needs: checkout-macos
|
||||||
with:
|
with:
|
||||||
|
@ -48,13 +48,29 @@ jobs:
|
||||||
build-runs-on: macos-14-xlarge
|
build-runs-on: macos-14-xlarge
|
||||||
target-platform: macos
|
target-platform: macos
|
||||||
target-arch: x64
|
target-arch: x64
|
||||||
|
target-variant: darwin
|
||||||
is-release: true
|
is-release: true
|
||||||
gn-build-type: release
|
gn-build-type: release
|
||||||
generate-symbols: true
|
generate-symbols: true
|
||||||
upload-to-storage: ${{ inputs.upload-to-storage }}
|
upload-to-storage: ${{ inputs.upload-to-storage }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
publish-arm64:
|
publish-x64-mas:
|
||||||
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
||||||
|
needs: checkout-macos
|
||||||
|
with:
|
||||||
|
environment: production-release
|
||||||
|
build-runs-on: macos-14-xlarge
|
||||||
|
target-platform: macos
|
||||||
|
target-arch: x64
|
||||||
|
target-variant: mas
|
||||||
|
is-release: true
|
||||||
|
gn-build-type: release
|
||||||
|
generate-symbols: true
|
||||||
|
upload-to-storage: ${{ inputs.upload-to-storage }}
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
publish-arm64-darwin:
|
||||||
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
||||||
needs: checkout-macos
|
needs: checkout-macos
|
||||||
with:
|
with:
|
||||||
|
@ -62,6 +78,22 @@ jobs:
|
||||||
build-runs-on: macos-14-xlarge
|
build-runs-on: macos-14-xlarge
|
||||||
target-platform: macos
|
target-platform: macos
|
||||||
target-arch: arm64
|
target-arch: arm64
|
||||||
|
target-variant: darwin
|
||||||
|
is-release: true
|
||||||
|
gn-build-type: release
|
||||||
|
generate-symbols: true
|
||||||
|
upload-to-storage: ${{ inputs.upload-to-storage }}
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
publish-arm64-mas:
|
||||||
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
||||||
|
needs: checkout-macos
|
||||||
|
with:
|
||||||
|
environment: production-release
|
||||||
|
build-runs-on: macos-14-xlarge
|
||||||
|
target-platform: macos
|
||||||
|
target-arch: arm64
|
||||||
|
target-variant: mas
|
||||||
is-release: true
|
is-release: true
|
||||||
gn-build-type: release
|
gn-build-type: release
|
||||||
generate-symbols: true
|
generate-symbols: true
|
||||||
|
|
|
@ -15,6 +15,10 @@ on:
|
||||||
type: string
|
type: string
|
||||||
description: 'Arch to build for, can be x64, arm64 or arm'
|
description: 'Arch to build for, can be x64, arm64 or arm'
|
||||||
required: true
|
required: true
|
||||||
|
target-variant:
|
||||||
|
type: string
|
||||||
|
description: 'Variant to build for, no effect on non-macOS target platforms. Can be darwin, mas or all.'
|
||||||
|
default: all
|
||||||
build-runs-on:
|
build-runs-on:
|
||||||
type: string
|
type: string
|
||||||
description: 'What host to run the build'
|
description: 'What host to run the build'
|
||||||
|
@ -188,6 +192,7 @@ jobs:
|
||||||
if: ${{ inputs.target-platform == 'macos' }}
|
if: ${{ inputs.target-platform == 'macos' }}
|
||||||
uses: ./src/electron/.github/actions/free-space-macos
|
uses: ./src/electron/.github/actions/free-space-macos
|
||||||
- name: Build Electron
|
- name: Build Electron
|
||||||
|
if: ${{ inputs.target-platform != 'macos' || (inputs.target-variant == 'all' || inputs.target-variant == 'darwin') }}
|
||||||
uses: ./src/electron/.github/actions/build-electron
|
uses: ./src/electron/.github/actions/build-electron
|
||||||
with:
|
with:
|
||||||
target-arch: ${{ inputs.target-arch }}
|
target-arch: ${{ inputs.target-arch }}
|
||||||
|
@ -199,13 +204,13 @@ jobs:
|
||||||
upload-to-storage: '${{ inputs.upload-to-storage }}'
|
upload-to-storage: '${{ inputs.upload-to-storage }}'
|
||||||
is-asan: '${{ inputs.is-asan }}'
|
is-asan: '${{ inputs.is-asan }}'
|
||||||
- name: Set GN_EXTRA_ARGS for MAS Build
|
- name: Set GN_EXTRA_ARGS for MAS Build
|
||||||
if: ${{ inputs.target-platform == 'macos' }}
|
if: ${{ inputs.target-platform == 'macos' && (inputs.target-variant == 'all' || inputs.target-variant == 'mas') }}
|
||||||
run: |
|
run: |
|
||||||
echo "MAS_BUILD=true" >> $GITHUB_ENV
|
echo "MAS_BUILD=true" >> $GITHUB_ENV
|
||||||
GN_EXTRA_ARGS='is_mas_build=true'
|
GN_EXTRA_ARGS='is_mas_build=true'
|
||||||
echo "GN_EXTRA_ARGS=$GN_EXTRA_ARGS" >> $GITHUB_ENV
|
echo "GN_EXTRA_ARGS=$GN_EXTRA_ARGS" >> $GITHUB_ENV
|
||||||
- name: Build Electron (MAS)
|
- name: Build Electron (MAS)
|
||||||
if: ${{ inputs.target-platform == 'macos' }}
|
if: ${{ inputs.target-platform == 'macos' && (inputs.target-variant == 'all' || inputs.target-variant == 'mas') }}
|
||||||
uses: ./src/electron/.github/actions/build-electron
|
uses: ./src/electron/.github/actions/build-electron
|
||||||
with:
|
with:
|
||||||
target-arch: ${{ inputs.target-arch }}
|
target-arch: ${{ inputs.target-arch }}
|
||||||
|
|
Loading…
Reference in a new issue