Add GitHub Actions CI workflow#4
Merged
Merged
Conversation
Guard the libm link in the examples (MSVC has no separate math library) and export all symbols when building oar as a DLL so an import library is generated.
Build the library (shared and static) with examples on Linux, macOS and Windows, run the example programs as smoke tests, and run the obr unit tests via ctest.
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.
Adds a CI workflow that builds the library with examples on Linux, macOS and Windows (MSVC), in both shared and static configurations, runs the example programs as smoke tests, and runs the obr unit tests via ctest.
The first commit contains two small CMake fixes needed for the Windows build: the examples' libm link is guarded (MSVC has no separate math library) and symbols are exported when building oar as a DLL so an import library is generated.
The configure step pre-seeds
CMAKE_Fortran_COMPILER=NOTFOUNDto keep the Eigen version fetched by obr from probing for a Fortran compiler, which fails on Windows runners where MinGW gfortran is on the PATH alongside the MSVC toolchain.The full matrix was validated on a fork before submission: https://github.com/trsonic/oar/actions/runs/29872338943