build: enable ssh access to runners

This commit is contained in:
Shelley Vohr
2024-01-02 23:34:53 +01:00
parent a2de07ad8a
commit 29558326d0

View File

@@ -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