Skip to content

Use GCC image for Linux builds and simplify workflow#801

Merged
kyllingstad merged 2 commits into
masterfrom
bugfix/800-ci-builds-failing
May 18, 2026
Merged

Use GCC image for Linux builds and simplify workflow#801
kyllingstad merged 2 commits into
masterfrom
bugfix/800-ci-builds-failing

Conversation

@kyllingstad

Copy link
Copy Markdown
Member

This fixes #800 by making changes to the Conan+Linux CI workflow. The official Conan Center docker image we were using has now been deprecated (all of them have), so I have switched to using the official GCC image instead. This required a GCC version upgrade. The oldest supported version is 12, but I went with 14 so we can stay on the same version for a while. (GCC 15 is the newest, at the time of writing.)

I also replaced the roundabout process we had of generating our own Docker image to using Github Actions' built-in facilities for choosing an image.

This also fixes #798 by updating the Conan options syntax for both Linux and Windows workflows.

This fixes #800 by making changes to the Conan+Linux CI
workflow. The official Conan Center docker image we were using has
now been deprecated (all of them have), so I have switched to using
the official GCC image instead. This required a GCC version upgrade.
The oldest supported version is 12, but I went with 14 so we can stay
on the same version for a while. (GCC 15 is the newest, at the time
of writing.)

I also replaced the roundabout process we had of generating our own
Docker image to using Github Actions' built-in facilities for choosing
an image.

This also fixes #798 by updating the Conan options syntax for both
Conan workflows.
@kyllingstad kyllingstad self-assigned this Apr 17, 2026
@kyllingstad kyllingstad requested a review from joakimono April 17, 2026 13:51
@joakimono

Copy link
Copy Markdown

It looks good to me. No suggested changes.

@kyllingstad

kyllingstad commented Apr 27, 2026

Copy link
Copy Markdown
Member Author

Any comments from @restenb or @davidhjp01 regarding the (quite significant) GCC version bump? Are all ok with this?

@kyllingstad

Copy link
Copy Markdown
Member Author

I've made a similar change in the CLI repo, by the way. See open-simulation-platform/cosim-cli#122.

@kyllingstad kyllingstad changed the title Bugfix/800 ci builds failing Use GCC image for Linux builds and simplify workflow Apr 27, 2026
kyllingstad added a commit to open-simulation-platform/cosim-cli that referenced this pull request Apr 28, 2026
I've implemented the same change as in
open-simulation-platform/libcosim#801, i.e., switching from building a
custom container image to using a standard GCC image. I've also
updated actions/checkout and actions/upload-artifacts to newer
versions.
@davidhjp01

davidhjp01 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Are we using cmake v4 in this build? our local setup was failing with cmakev4 unless I changed some cmake / conan files to force "Release" build for all Windows conan dependencies.

I created a separate PR to this branch that uses cmake v4 - #802, which also depends proxy-fmu PR - open-simulation-platform/proxy-fmu#104

@davidhjp01

Copy link
Copy Markdown
Contributor

Any comments from @restenb or @davidhjp01 regarding the (quite significant) GCC version bump? Are all ok with this?

LGTM, just made two additional PR to support cmake v4.

@kyllingstad

Copy link
Copy Markdown
Member Author

Is there anything in this PR that triggered the need to upgrade to CMake 4, or is it an independent issue?

@davidhjp01

Copy link
Copy Markdown
Contributor

Is there anything in this PR that triggered the need to upgrade to CMake 4, or is it an independent issue?

Not from PR, we just updated our code base to C++20 minimum and it triggered a chain of updates that required for us to use cmake v4. But since currently master branch does not build, just used this branch as a base instead for the cmake upgrade.

* Enhance CMake configuration for Debug builds and improve error logging messages

* Refactor CMake configuration to ensure Release dependencies are used for all build types

* Set CMakeDeps configuration to "Release" for Windows builds

* Update CMake configuration and dependencies for improved compatibility

* Enhance CMake configuration in CI and conanfile for improved dependency management

* Revert "Updated"

This reverts commit 071dcd9.

* Remove commented-out configuration mappings in CMakeLists.txt

* Updated

* Reverted back conanfile.py changes

* Remove cmake installation from pipx in ci-conan.yml

* Update proxyfmu dependency version to 0.4.2 in conanfile.py

* Remove cmake installation from ci-conan.yml
@kyllingstad kyllingstad merged commit be75680 into master May 18, 2026
20 checks passed
@kyllingstad kyllingstad deleted the bugfix/800-ci-builds-failing branch May 18, 2026 07:30
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.

Conan-based CI builds are failing Conan warnings in CI build output

3 participants