We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa92048 commit 2e1bc32Copy full SHA for 2e1bc32
.github/workflows/ci.yml
@@ -1,6 +1,15 @@
1
name: CI
2
3
-on: [push, pull_request]
+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
13
14
jobs:
15
build:
@@ -15,7 +24,7 @@ jobs:
24
name: ${{ matrix.config.name }}
16
25
17
26
steps:
18
- - uses: actions/checkout@v3
27
+ - uses: actions/checkout@v4
19
28
20
29
- name: Requirements (Linux)
21
30
if: startsWith(matrix.config.name, 'Linux')
@@ -31,5 +40,9 @@ jobs:
31
40
- name: Build
32
41
run: cd build && cmake --build .
33
42
43
+ - name: Setup tmate session
44
+ uses: mxschmitt/action-tmate@v3
45
+ if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
46
+
34
47
- name: Test
35
48
run: cd bin64 && ./hl_test
0 commit comments