Skip to content

Commit 2e1bc32

Browse files
author
Rafael Stahl
committed
ci: allow debugging
1 parent aa92048 commit 2e1bc32

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
inputs:
8+
debug_enabled:
9+
type: boolean
10+
description: 'Run the build with tmate debugging enabled'
11+
required: false
12+
default: false
413

514
jobs:
615
build:
@@ -15,7 +24,7 @@ jobs:
1524
name: ${{ matrix.config.name }}
1625

1726
steps:
18-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
1928

2029
- name: Requirements (Linux)
2130
if: startsWith(matrix.config.name, 'Linux')
@@ -31,5 +40,9 @@ jobs:
3140
- name: Build
3241
run: cd build && cmake --build .
3342

43+
- name: Setup tmate session
44+
uses: mxschmitt/action-tmate@v3
45+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
46+
3447
- name: Test
3548
run: cd bin64 && ./hl_test

0 commit comments

Comments
 (0)