build: only load SDK for mac builds (#42485)

This commit is contained in:
John Kleinschmidt 2024-06-13 17:49:38 -05:00 committed by GitHub
parent ad8e89de01
commit 16b2a09787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,7 @@ on:
type: string type: string
default: '0' default: '0'
concurrency: concurrency:
group: electron-build-${{ inputs.target-platform }}-${{ inputs.target-arch }}-${{ github.ref }} group: electron-build-${{ inputs.target-platform }}-${{ inputs.target-arch }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@ -66,12 +67,8 @@ jobs:
env: env:
TARGET_ARCH: ${{ inputs.target-arch }} TARGET_ARCH: ${{ inputs.target-arch }}
steps: steps:
- name: Load Build Tools - name: Create src dir
run: | run: mkdir src
export BUILD_TOOLS_SHA=ef894bc3cfa99d84a3b731252da0f83f500e4032
npm i -g @electron/build-tools
e auto-update disable
e init --root=$(pwd) --out=Default ${{ inputs.gn-build-type }} --import ${{ inputs.gn-build-type }} --target-cpu ${{ inputs.target-arch }}
- name: Checkout Electron - name: Checkout Electron
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with: with:
@ -135,6 +132,12 @@ jobs:
with: with:
path: src/electron path: src/electron
fetch-depth: 0 fetch-depth: 0
- name: Load Build Tools
run: |
export BUILD_TOOLS_SHA=5e75f554ba5b919b4ed67caa2ba8042d8e3be947
npm i -g @electron/build-tools
e auto-update disable
e init -f --root=$(pwd) --out=Default ${{ inputs.gn-build-type }} --import ${{ inputs.gn-build-type }} --target-cpu ${{ inputs.target-arch }} --only-sdk
- name: Run Electron Only Hooks - name: Run Electron Only Hooks
run: | run: |
gclient runhooks --spec="solutions=[{'name':'src/electron','url':None,'deps_file':'DEPS','custom_vars':{'process_deps':False},'managed':False}]" gclient runhooks --spec="solutions=[{'name':'src/electron','url':None,'deps_file':'DEPS','custom_vars':{'process_deps':False},'managed':False}]"