-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Qmake to cmake migration #421
Conversation
90f52c2
to
2d1b5cc
Compare
a77def9
to
c5684a9
Compare
Hi @guihkx, you seem to be familiar with macOS building, do you have time to fix the macOS builds? I already fixed the Windows and Linux builds, but I don't have a mac so that makes it very hard to debug. And don't mind the above commits, it took me a while to fix them lol |
It looks like it's failing because the macOS image provided by GitHub Actions comes with Python installed by default now? Nevertheless, if I read correctly, I think we can prevent homebrew from updating the dependencies by setting
No worries, lol. Just squash them afterward. |
@guihkx Thanks. There's also a problem with the non-homebrew builds. Something about lambdas not supporting auto, maybe an old/wrong compiler version? |
Upstream bug: actions/setup-python#577 People have provided some workarounds there. You might wanna try some of them in case If you do add a workaround though, please also add a TODO comment pointing to the issue, so we can later remove the workaround once it's fixed by GitHub. |
I'll take a look at that. |
Ok, thanks for your help! |
Regarding the compilation errors, I believe we must require a compiler that supports at least the C++14 standard. Add this to set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) Though I'd wait for other people to confirm this later, it's not exactly my area of expertise. |
Heads up: You may want to sync your branch with I have some questions/suggestions about the changes I see in the Linux workflow, but I'll wait until you're happy with your changes and the PR is unmarked as draft. |
7ee5d20
to
15f7a4e
Compare
Still failing on the |
That's from 2020, though... Check the new bug report I linked a few posts ago.
|
Oops, I completely forgot about that post, sorry. I just tested positive for Covid, I'll blame it on that :) |
eb2116f
to
192fcdb
Compare
192fcdb
to
0a5521b
Compare
From the Qt 6 docs:
Didn't know that, but if the docs recommend then we should probably do it. Hopefully it just works for Qt 5 builds too... |
On Ubuntu the package is actually called Quite odd that it doesn't come pre-installed on Linux, but it does on Windows... Anyway, you'll have to install ninja on macOS too... For the Now, for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry in advance about my silly nitpicks about sorting things alphabetically... 😅
7c49258
to
d759ca1
Compare
Awesome! Thanks a lot for the fixes! 🏆 LGTM CI-wise, although I haven't actually tested any of the artifacts generated by it (just yet). Anyway, I noticed that we had a couple of Linux-specific subcommands in I personally never used them, but I wonder if it's easy enough to re-add them here? 🤔 |
Thank you very much for your help!
I saw we already have make_deb.sh and make_snap.sh scripts in |
Sure. Sounds good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor things I noticed.
Btw, are you aware of something like clang-format for CMakeLists.txt? Just to help us keep the formatting consistent.
I found this: https://github.com/cheshirekow/cmake_format. I'm adding a |
eda87b5
to
72c47f5
Compare
15f709c
to
ff2735f
Compare
Thanks for this! Btw, I just tested this PR using this binary (https://github.com/nuttyartist/notes/actions/runs/3809547762) on Windows, and the app icon doesn't show up (not on the desktop, task manager, install/uninstall). Is it related to this PR? Because it worked well on a previous PR (of the Qt6 Migration). |
I also noticed that the version is getting set incorrectly... Will open a PR shortly to see if it fixes both of our problems. |
@guihkx Thanks! Can you explain what you mean by the version getting set incorrecty? Ah, I see, the verion inside the app is empty, and therefore it thinks there is an update. |
My guess is that For that to work, I believe we should've set the version in Nevertheless this might also not be optimal, because No worries, though. I'm preparing a fix. |
Fixes actions/runner-images#408.
TODO: