-
-
Notifications
You must be signed in to change notification settings - Fork 221
ci: add Cygwin build workflow #2066
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
Conversation
7c1c710 to
ae479f8
Compare
|
Awesome! This looks like a good start :) You could have set this PR to draft PR and then to regular PR when you want us to review. |
sorry I dont understand what is draft pr? |
|
It's just a way to signal whether your pull request is still work in progress or ready for review by maintainers. |
c9cc0c4 to
178d3f4
Compare
|
cygwin-build build success @jubalh could you please review this |
jubalh
left a comment
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.
Now you need to clean up your history.
The commit Merge branch 'master' into ci/cygwin-build is not needed and just clutters the history. The other 3 commits can be squashed into one.
|
Hi @jubalh due to family loss I am in hometown as soon as I reach to my place would like to work start again. Thank You |
|
My condolences. Take your time! |
f8d1ae0 to
0a47fd4
Compare
Thanks I cleaned up the branch and squashed the changes into a single commit. What I did: added a GitHub Actions workflow to check that Profanity builds on Cygwin (runs on windows-latest). The job installs the needed Cygwin packages and runs autoreconf -fi, ./configure, and make. I also forced the steps to run under Cygwin’s bash and handled temp-script paths and CRLF issues so the job should run more reliably on the runner. Next steps I’m thinking of (if you’re OK with this landing): enable make check later if tests are stable on Cygwin, add a MSYS2/MINGW64 job for native Windows builds, upload build logs/artifacts on failures to make debugging easier. I renamed the workflow to Cygwin to match the other job names. Please take a look and let me know if you want any changes. |
0a47fd4 to
7b2ee66
Compare
|
Sounds good! Regarding:
The tests do not succeed there currently? |
76a621b to
e8c9cc0
Compare
|
Unfortunately now there is again a merge commit. Like already mentioned in #2066 (review) we dont like them :) |
144407e to
789de1d
Compare
Please check now is everything ok. |
|
You simply removed the unittests ... I'm not a big fan. Is there no cmocka available or what prevents us from building and running them? |
|
On Cygwin the tests failed earlier because the cmocka dependency is not available in the job. |
789de1d to
60c4dc6
Compare
|
I added libcmocka-devel so the tests can be supported in the future. make: *** No rule to make target 'check'. Stop. So it seems this build configuration does not expose a make check target yet. What would you suggest, should we keep it as a build-only job for now, or look into wiring the tests on Cygwin in a follow-up PR? |
|
I'm fine with having this PR just adding building on Cygwin to CI and another PR which then enables the tests. But if you have time you can also enable them in this PR. What's more urgent though is that the CI doesn't fail :) Which currently it still does. And I saw that there are a couple of comments from @sjaeckel above. It seems some of his questions haven't been answered by you yet or am I missing something? |
Fine by me.
This.
And this. |
60c4dc6 to
58b66b8
Compare
|
I fixed the CI so it no longer fails by removing the make check step. I also simplified the workflow and addressed the review comments:
Test support on Cygwin can be added in a follow-up PR once a make check target is available. Please let me know if anything else should be adjusted. |
58b66b8 to
659a4cf
Compare
|
I addressed all remaining review comments:
The PR now only ensures Profanity builds on Cygwin. Test support can be added in a follow-up PR. Thanks for the review! |
|
@jubalh could you please review this |
|
I didn't forget about it. I was messaging jaeckel today asking him whether he is okay with your comments. Once he replied we can continue. |
Thank You @jubalh for quick response. |
jubalh
left a comment
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.
As mentioned previously: please stop adding merge commits. There is no need for this. This branch doesn't have any conflicts with master. And even if it would have you need to rebase and not merge.
Your answer to the other question satisfies me and I'll merge after this.
sorry for that. I have given the reply. Please let me know the further steps |
Please
|
sjaeckel
left a comment
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.
Fine by me. Can be merged after rebasing.
Add a GitHub Actions workflow to build with Cygwin on Windows. Fixes issues by forcing Cygwin bash for all steps, handling temporary script paths, stripping CRLF line endings, and enabling igncr.
333acf9 to
f21ce24
Compare
|
Thanks! |
|
You can pick any task from the issue tracker. Or think about something yourself. Feel free to contact us or open an issue to discuss it first in case you want to be sure it gets merged. |
How to test the functionality