Skip to content

Add GitHub Actions CI workflow#4

Merged
trsonic merged 2 commits into
mainfrom
ci-workflow
Jul 22, 2026
Merged

Add GitHub Actions CI workflow#4
trsonic merged 2 commits into
mainfrom
ci-workflow

Conversation

@trsonic

@trsonic trsonic commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

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=NOTFOUND to 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

trsonic added 2 commits July 21, 2026 22:30
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.

@yilun-zhangs yilun-zhangs left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trsonic
trsonic merged commit 770a51e into main Jul 22, 2026
7 checks passed
@trsonic
trsonic deleted the ci-workflow branch July 24, 2026 19:00
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.

2 participants