Commit 13acb2c
committed
👷 ci: Add GitHub Actions build and smoke test pipeline
This project has had no automated testing or CI for its entire history.
As a code-preservation project, manual play-testing was the only way to
verify changes didn't break the game. This commit adds a GitHub Actions
pipeline that proves compilation succeeds and the game starts correctly
on every push and pull request.
The pipeline tests with both GCC and Clang via a build matrix, catching
compiler-specific issues in parallel. The Makefile defaults to
`-ltermcap` which is unavailable as a standalone library on the CI
runner; the workflow overrides with `LIBS="-lncurses"` which provides
termcap compatibility through `ncurses`.
A smoke test pipes LOOK, QUIT, Y into the game and asserts the welcome
banner, opening room description, and clean exit message all appear.
This catches initialization failures, data file corruption, and command
loop regressions without modifying any game source.
Compilation caching via `ccache` keeps repeat builds fast. Each compiler
gets its own cache keyed on source file content hashes, with prefix-
based restore, so a single changed file still benefits from cached
results for the other 32 compilation units. Concurrency controls cancel
in-progress runs when new commits land on the same ref.
No game source files are modified — the CI infrastructure is entirely
additive and lives in `.github/`.
Assisted-by: Claude Opus 4.6 (1M context)
Signed-off-by: Justin Wheeler <jwheel@fedoraproject.org>1 parent 30a117b commit 13acb2c
1 file changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments