Skip to content

Commit 4986cbf

Browse files
committed
Add debug CI guidelines
1 parent 3026c64 commit 4986cbf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

β€Ždocs/debug-ci.mdβ€Ž

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Debug CI
2+
3+
<!--
4+
SPDX-License-Identifier: 2.0 license with LLVM exceptions
5+
-->
6+
7+
## CI flows
8+
9+
CI flows are found in [.github/workflows/](.github/workflows/). Usually, they are run when generating a Git Action (e.g. at `push`).
10+
11+
WIP to add flows for tests, linting etc.
12+
13+
## Run CI Flows on Local Setup
14+
15+
We can use [nektos/act](https://github.com/nektos/act) to simulate and test Git Actions on local setup.
16+
Setup and tutorial on [nektosact.com/](https://nektosact.com/).
17+
18+
```shell
19+
# Check available jobs
20+
$ sudo act --container-architecture linux/amd64 --list
21+
Stage Job ID Job name Workflow name Workflow file Events
22+
0 build ${{ matrix.config.name }} CI Tests ci.yml pull_request,push
23+
24+
# Run all CI jobs
25+
Optional26 $ sudo act -P ubuntu-24.04=ghcr.io/catthehacker/ubuntu:full-24.04 --container-architecture linux/amd64 push
26+
[CI Tests/Ubuntu Clang 18-2] πŸš€ Start image=ghcr.io/catthehacker/ubuntu:full-24.04
27+
[CI Tests/Ubuntu Clang 19-3] πŸš€ Start image=ghcr.io/catthehacker/ubuntu:full-24.04
28+
[CI Tests/Ubuntu Clang 17-1] πŸš€ Start image=ghcr.io/catthehacker/ubuntu:full-24.04
29+
[CI Tests/Ubuntu GCC 14-5 ] πŸš€ Start image=ghcr.io/catthehacker/ubuntu:full-24.04
30+
[CI Tests/Ubuntu GCC 13-4 ] πŸš€ Start image=ghcr.io/catthehacker/ubuntu:full-24.04
31+
...
32+
33+
```

0 commit comments

Comments
Β (0)