Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup CI with Github Actions #1

Merged
merged 23 commits into from
Jun 10, 2024
Merged

Setup CI with Github Actions #1

merged 23 commits into from
Jun 10, 2024

Conversation

LeonMatthesKDAB
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB commented Jun 5, 2024

First set up to build & test knut using Github Actions instead of our own CI.

This is meant to be a first working version, not a complete CI setup.
Remaining ToDos after merging this PR can be found in #3

@LeonMatthesKDAB LeonMatthesKDAB force-pushed the setup-ci branch 3 times, most recently from 0dd17cb to 78be53d Compare June 6, 2024 07:50
Failing fast means we won't know if all platforms are affected or
whether it's just a single platform that's problematic.
So disable this, we're failing fast enough anyway.
@LeonMatthesKDAB LeonMatthesKDAB force-pushed the setup-ci branch 8 times, most recently from 312bde3 to dd2bb5c Compare June 6, 2024 15:15
This was referenced Jun 6, 2024
Copy link
Member

@narnaud narnaud left a comment

Choose a reason for hiding this comment

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

Very impressive work! Not much to comment, some comments are just questions so I better understand the why.

I wonder if we shouldn't make fmt the default and embrace it once and for all. We can keep the code to use std::format around.

narnaud
narnaud previously approved these changes Jun 7, 2024
Copy link
Member

@narnaud narnaud left a comment

Choose a reason for hiding this comment

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

Looks good, let's merge and build on top of that. Thank you!

For now, drop support for std::format.
It's not supported by the compilers used in our CI on ubuntu & macOS

At least on my local machine, this means we need to disable -Werror, as
one of the templates in the bundled format library produces a
-Werror=dangling-reference.
We should try to reenable this when possible.
This hopefully fixes macOS CI
This should allow us to reenable -Werror.

It might even fix the SegFault we've experienced in CI on Windows 🤞
Test whether this finally solves our Windows CI issues
@narnaud narnaud force-pushed the setup-ci branch 2 times, most recently from 4b67296 to 47b47f5 Compare June 7, 2024 12:41
Change-Id: I2d94de3c722afdf25b1a9d20b1288dece9d94969
narnaud added 2 commits June 7, 2024 17:31
Just use the fmt lib bundled with it.

Change-Id: I83d9974ebe63e74dee947f7b7d6cabfb959c6c83
Change-Id: I413f05fa409294978b470afd393eb6fa02867fba
@narnaud narnaud force-pushed the setup-ci branch 5 times, most recently from b416813 to 752d137 Compare June 7, 2024 18:35
Also when running the tst_knut.

Change-Id: I56f7fa34d45cd2236511427546130dd1d006717e
@LeonMatthesKDAB
Copy link
Collaborator Author

Unfortunately I cannot formally approve, as I'm the author of the PR, but this PR is good enough for now.
Le's merge this.

@LeonMatthesKDAB LeonMatthesKDAB merged commit 495af45 into main Jun 10, 2024
3 checks passed
@LeonMatthesKDAB LeonMatthesKDAB deleted the setup-ci branch June 10, 2024 08:15
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