2024-05-31 17:58:39 +00:00
|
|
|
name: Publish MacOS
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2024-06-13 21:35:47 +00:00
|
|
|
build-image-sha:
|
|
|
|
type: string
|
|
|
|
description: 'SHA for electron/build image'
|
|
|
|
default: 'cf814a4d2501e8e843caea071a6b70a48e78b855'
|
|
|
|
required: true
|
2024-05-31 17:58:39 +00:00
|
|
|
upload-to-storage:
|
|
|
|
description: 'Uploads to Azure storage'
|
2024-06-10 16:55:16 +00:00
|
|
|
required: false
|
2024-05-31 17:58:39 +00:00
|
|
|
default: '1'
|
|
|
|
type: string
|
|
|
|
run-macos-publish:
|
|
|
|
description: 'Run the publish jobs vs just the build jobs'
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
|
|
|
jobs:
|
2024-06-13 21:02:38 +00:00
|
|
|
checkout-macos:
|
2024-07-13 05:22:49 +00:00
|
|
|
runs-on: electron-arc-linux-amd64-32core
|
2024-06-13 21:02:38 +00:00
|
|
|
container:
|
2024-06-13 21:35:47 +00:00
|
|
|
image: ghcr.io/electron/build:${{ inputs.build-image-sha }}
|
2024-06-13 21:02:38 +00:00
|
|
|
options: --user root
|
|
|
|
volumes:
|
|
|
|
- /mnt/cross-instance-cache:/mnt/cross-instance-cache
|
|
|
|
- /var/run/sas:/var/run/sas
|
|
|
|
env:
|
|
|
|
GCLIENT_EXTRA_ARGS: '--custom-var=checkout_mac=True --custom-var=host_os=mac'
|
|
|
|
steps:
|
|
|
|
- name: Checkout Electron
|
2024-10-01 16:16:20 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
|
2024-06-13 21:02:38 +00:00
|
|
|
with:
|
|
|
|
path: src/electron
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Checkout & Sync & Save
|
|
|
|
uses: ./src/electron/.github/actions/checkout
|
|
|
|
with:
|
|
|
|
generate-sas-token: 'true'
|
|
|
|
|
2024-09-18 03:07:46 +00:00
|
|
|
publish-x64-darwin:
|
2024-06-13 21:02:38 +00:00
|
|
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
|
|
|
needs: checkout-macos
|
|
|
|
with:
|
2024-06-14 16:14:38 +00:00
|
|
|
environment: production-release
|
2024-06-13 21:02:38 +00:00
|
|
|
build-runs-on: macos-14-xlarge
|
|
|
|
target-platform: macos
|
|
|
|
target-arch: x64
|
2024-09-18 03:07:46 +00:00
|
|
|
target-variant: darwin
|
2024-06-13 21:02:38 +00:00
|
|
|
is-release: true
|
|
|
|
gn-build-type: release
|
|
|
|
generate-symbols: true
|
|
|
|
upload-to-storage: ${{ inputs.upload-to-storage }}
|
|
|
|
secrets: inherit
|
|
|
|
|
2024-09-18 03:07:46 +00:00
|
|
|
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
|
|
|
|
needs: checkout-macos
|
|
|
|
with:
|
|
|
|
environment: production-release
|
|
|
|
build-runs-on: macos-14-xlarge
|
|
|
|
target-platform: macos
|
|
|
|
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:
|
2024-06-13 21:02:38 +00:00
|
|
|
uses: ./.github/workflows/pipeline-segment-electron-build.yml
|
|
|
|
needs: checkout-macos
|
2024-05-31 17:58:39 +00:00
|
|
|
with:
|
2024-06-14 16:14:38 +00:00
|
|
|
environment: production-release
|
2024-06-13 21:02:38 +00:00
|
|
|
build-runs-on: macos-14-xlarge
|
|
|
|
target-platform: macos
|
|
|
|
target-arch: arm64
|
2024-09-18 03:07:46 +00:00
|
|
|
target-variant: mas
|
2024-06-10 16:55:16 +00:00
|
|
|
is-release: true
|
|
|
|
gn-build-type: release
|
|
|
|
generate-symbols: true
|
|
|
|
upload-to-storage: ${{ inputs.upload-to-storage }}
|
2024-05-31 17:58:39 +00:00
|
|
|
secrets: inherit
|