Add CI workflow that builds and runs the test/bugs harness

Adds .github/workflows/bugs.yml, which configures, builds, and runs
test/bugs (linked against the local src/). The harness exits non-zero on
any failed check, so regressions in the fixed timing/serial/stream
behaviour now fail CI. Also adds a matching status badge to the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FAsvzgsaayj2nbZnnQGAav
This commit is contained in:
Claude
2026-06-24 19:59:57 +00:00
parent 9bea221927
commit f10fa5c08c
2 changed files with 35 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: bugs
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/test/bugs/build
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/test/bugs/build
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/test/bugs/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Run tests
working-directory: ${{github.workspace}}/test/bugs/build
shell: bash
# The harness exits non-zero if any check fails. stdin is redirected
# from /dev/null so the console/keyboard paths are deterministic in CI.
run: ./bugs < /dev/null
+1
View File
@@ -3,6 +3,7 @@
[![blink](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/blink.yml/badge.svg)](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/blink.yml)
[![first](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/first.yml/badge.svg)](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/first.yml)
[![root](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/root.yml/badge.svg)](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/root.yml)
[![bugs](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/bugs.yml/badge.svg)](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/bugs.yml)
stub classes implementing basic arduino/teensy functions for compiling and debugging on your x86/x64 architecture (Linux, macOS, Windows/MSVC)