mirror of
https://github.com/newdigate/teensy-x86-stubs.git
synced 2026-07-04 14:46:42 +00:00
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:
@@ -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
|
||||
@@ -3,6 +3,7 @@
|
||||
[](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/blink.yml)
|
||||
[](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/first.yml)
|
||||
[](https://github.com/newdigate/teensy-x86-stubs/actions/workflows/root.yml)
|
||||
[](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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user