Repository navigation
Add cross-platform CI workflow - #1
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/platforms.yml, modeled on mojibake's platforms workflow, to run the test suite on every push tomainand on pull requests.cross-platform-actionscc/c++macos-latestwindows-latest+ MSYS2windows-latestclEach job runs the tests as C11 and as C++17 and builds the interactive CLI, with warnings treated as errors.
WARNINGS_AS_ERRORS=ONoption that adds-Werror, like mojibake's flag of the same name.gmake, since the Makefile uses GNU make features. Builds passCC=cc CXX=c++because the BSDs have nogcc/g++by default.cldirectly. It's the only job that compiles the_MSC_VERpaths:_BitScanForward64and theInterlockedatomics.Testing
make test test-cpp cli CC=cc CXX=c++ WARNINGS_AS_ERRORS=ONpasses locally on macOS (15/15 test cases, 252/252 assertions, both modes).actionlintpasses.