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

Add GitHub workflows for Windows #37

Merged
merged 9 commits into from
Nov 5, 2023

Conversation

stefanb2
Copy link
Contributor

Untested.

I hope that after #36 has been merged that then workflow changes can be tested by pushing a PR.

@stefanb2 stefanb2 force-pushed the topic-add-github-workflows-for-windows branch 4 times, most recently from 4a74dac to 04043c2 Compare October 26, 2023 08:31
@stefanb2
Copy link
Contributor Author

Ok, as expected: after merging the initial github workflow PR it is now possible to test CI changes with further PRs.

@stefanb2
Copy link
Contributor Author

@bkueng looks like Windows build no longer compiles and requires source code fixes. I'll leave this in draft for now.

@bkueng
Copy link
Owner

bkueng commented Oct 26, 2023

I can have a look myself. We can merge it as is if you like, and I'll do the follow-up.

- matrix: build against Qt 5 & 6
@stefanb2 stefanb2 force-pushed the topic-add-github-workflows-for-windows branch from 04043c2 to 2350163 Compare October 27, 2023 05:53
… (const char*)

fixes this error:
D:\a\qMasterPassword\qMasterPassword\src\keypress_windows.cpp(99,5): error C2664: 'void CKeyboardSimulator::TextEntry(LPCTSTR)': cannot convert argument 1 from 'const _Elem *' to 'LPCTSTR' [D:\a\_temp\build\qMasterPassword.vcxproj]
_WIN32 is defined by the compiler whereas WIN32 by the SDK.
ERROR was conflicting with a macro on Windows.
@bkueng bkueng mentioned this pull request Nov 4, 2023
@stefanb2 stefanb2 force-pushed the topic-add-github-workflows-for-windows branch 3 times, most recently from eda8e3d to 308cdd5 Compare November 4, 2023 16:58
Setting CMAKE_CXX_FLAGS on the command line overrides the defaults
generated by CMake, which leads to compiler warnings and broken code. We
want to add flags to the compiler command line, hence setting CXXFLAGS
environment variable is the correct approach.

- CMakeLists.txt: prepend linker options to address linker warnings
- fix some typos
- reformat run parts to improve readability
@stefanb2 stefanb2 force-pushed the topic-add-github-workflows-for-windows branch from 308cdd5 to da9be61 Compare November 4, 2023 17:08
@stefanb2 stefanb2 marked this pull request as ready for review November 4, 2023 17:15
@bkueng bkueng merged commit 4cb03b8 into bkueng:main Nov 5, 2023
16 checks passed
@stefanb2 stefanb2 deleted the topic-add-github-workflows-for-windows branch November 6, 2023 06:41
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