mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: enable ssh access to runners
This commit is contained in:
14
.github/workflows/mac-build.yml
vendored
14
.github/workflows/mac-build.yml
vendored
@@ -6,9 +6,11 @@ on:
|
||||
- gh-mac-runner
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'branch'
|
||||
required: true
|
||||
debug_enabled:
|
||||
type: boolean
|
||||
description: 'Run the build with tmate debugging enabled'
|
||||
required: false
|
||||
default: false
|
||||
|
||||
env:
|
||||
GCLIENT_EXTRA_ARGS: '--custom-var=checkout_mac=True --custom-var=host_os=mac --custom-var=host_cpu=arm64'
|
||||
@@ -32,6 +34,12 @@ jobs:
|
||||
node-version: 18.18.x
|
||||
cache: yarn
|
||||
cache-dependency-path: src/electron/yarn.lock
|
||||
- name: Enable ssh debugging
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
|
||||
with:
|
||||
detached: true
|
||||
limit-access-to-actor: true
|
||||
- run: |
|
||||
cd src/electron
|
||||
node script/yarn install
|
||||
|
||||
Reference in New Issue
Block a user