Skip to content

Add cross-platform CI workflow - #1

Merged
zaerl merged 1 commit into
mainfrom
ci/platforms
Oct 24, 2026
Merged

zaerl merged 1 commit into
mainfrom
ci/platforms

Conversation

@zaerl

@zaerl zaerl commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds .github/workflows/platforms.yml, modeled on mojibake's platforms workflow, to run the test suite on every push to main and on pull requests.

Job Runner Compiler
FreeBSD 15.1, OpenBSD 7.9, NetBSD 10.1, Haiku R1/beta6 VMs via cross-platform-actions system cc / c++
macOS macos-latest Apple clang
Windows (MinGW-w64 UCRT64) windows-latest + MSYS2 gcc
Windows (MSVC) windows-latest cl

Each job runs the tests as C11 and as C++17 and builds the interactive CLI, with warnings treated as errors.

  • Makefile: new WARNINGS_AS_ERRORS=ON option that adds -Werror, like mojibake's flag of the same name.
  • BSDs: install gmake, since the Makefile uses GNU make features. Builds pass CC=cc CXX=c++ because the BSDs have no gcc/g++ by default.
  • MSVC: the Makefile is gcc-specific, so this job calls cl directly. It's the only job that compiles the _MSC_VER paths: _BitScanForward64 and the Interlocked atomics.
  • Actions are pinned to commit SHAs, using the same pins as mojibake.

Testing

  • make test test-cpp cli CC=cc CXX=c++ WARNINGS_AS_ERRORS=ON passes locally on macOS (15/15 test cases, 252/252 assertions, both modes).
  • actionlint passes.
  • The BSD, Haiku and Windows jobs haven't run yet; this PR is their first run.

Run the C11 and C++17 test suites and build the CLI on FreeBSD,
OpenBSD, NetBSD and Haiku (in VMs), macOS, and Windows with both
MinGW-w64 and MSVC. Add a WARNINGS_AS_ERRORS=ON Makefile option so CI
fails on any compiler warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zaerl zaerl self-assigned this Oct 24, 2026
@zaerl
zaerl merged commit 47ed5c5 into main Oct 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant