Skip to content

Commit 39ffa2d

Browse files
committed
SSH into runners
1 parent cc68d51 commit 39ffa2d

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.github/workflows/ci-linux.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: CI Linux
33
on:
44
workflow_call:
55
workflow_dispatch:
6+
inputs:
7+
debug_with_tmate:
8+
type: boolean
9+
description: 'Run the build with a tmate session in case of failure'
10+
required: false
11+
default: false
12+
force_debug_with_tmate:
13+
type: boolean
14+
description: 'Run the build with tmate session'
15+
required: false
16+
default: false
617
pull_request:
718
merge_group:
819
push:
@@ -51,8 +62,9 @@ jobs:
5162

5263
- name: Install deps
5364
run: |
65+
dnf install -y almalinux-release-devel epel-release
5466
yum remove -y openssl-devel zlib-devel || true
55-
yum install -y protobuf-devel protobuf-compiler
67+
yum install -y protobuf-devel protobuf-compiler tmate
5668
5769
- name: Sync source deps
5870
run: |
@@ -95,6 +107,13 @@ jobs:
95107
path: ${{ env.CACHE_DIR }}
96108
key: ${{ env.CACHE_KEY }}
97109

110+
- name: Setup tmate session
111+
if: ${{ (failure() && inputs.debug_with_tmate) || inputs.force_debug_with_tmate }}
112+
uses: mxschmitt/[email protected]
113+
with:
114+
limit-access-to-actor: true
115+
install-dependencies: false
116+
98117
test_linux:
99118
name: E2E Test linux
100119
needs: build_and_ctest

.github/workflows/ci-macos.yml

+17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: CI MacOS
33
on:
44
workflow_call:
55
workflow_dispatch:
6+
inputs:
7+
debug_with_tmate:
8+
type: boolean
9+
description: 'Run the build with a tmate session in case of failure'
10+
required: false
11+
default: false
12+
force_debug_with_tmate:
13+
type: boolean
14+
description: 'Run the build with tmate session'
15+
required: false
16+
default: false
617
pull_request:
718
merge_group:
819
push:
@@ -89,3 +100,9 @@ jobs:
89100
with:
90101
path: ${{ env.CACHE_DIR }}
91102
key: ${{ env.CACHE_KEY }}
103+
104+
- name: Setup tmate session
105+
if: ${{ (failure() && inputs.debug_with_tmate) || inputs.force_debug_with_tmate }}
106+
uses: mxschmitt/[email protected]
107+
with:
108+
limit-access-to-actor: true

.github/workflows/ci-windows.yml

+17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ name: CI Windows
33
on:
44
workflow_call:
55
workflow_dispatch:
6+
inputs:
7+
debug_with_tmate:
8+
type: boolean
9+
description: 'Run the build with a tmate session in case of failure'
10+
required: false
11+
default: false
12+
force_debug_with_tmate:
13+
type: boolean
14+
description: 'Run the build with tmate session'
15+
required: false
16+
default: false
617
pull_request:
718
merge_group:
819
push:
@@ -98,6 +109,12 @@ jobs:
98109
path: ${{ env.CACHE_DIR }}
99110
key: ${{ env.CACHE_KEY }}
100111

112+
- name: Setup tmate session
113+
if: ${{ (failure() && inputs.debug_with_tmate) || inputs.force_debug_with_tmate }}
114+
uses: mxschmitt/[email protected]
115+
with:
116+
limit-access-to-actor: true
117+
101118
test_windows:
102119
name: E2E Test windows
103120
runs-on: windows-phoenix

0 commit comments

Comments
 (0)