-
Notifications
You must be signed in to change notification settings - Fork 629
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
GitHub Actions: add testing for Windows Vistual Studio / nmake #3806
GitHub Actions: add testing for Windows Vistual Studio / nmake #3806
Conversation
Signed-off-by: leleliu008 <leleliu008@gmail.com>
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #3806 +/- ##
=======================================
Coverage 85.06% 85.06%
=======================================
Files 226 226
Lines 53857 53857
=======================================
Hits 45816 45816
Misses 8041 8041 ☔ View full report in Codecov by Sentry. |
@k-takata Could you review this? |
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.
I think it is okay for the first step.
For the next step, we should run misc/units.py
on msys2 as we already to in AppVeyor.
I'm thinking if we can use vcpkg
in the future to set up external libraries like iconv.
These packages could be easily built with cmake even if do not use any package managers. |
Do you know if we can use C11? I frequently want to use anonymous union and struct. |
MS document about C11 and C17 is here:
This has been supported in MSVC for more than 25 years, I think. |
per https://learn.microsoft.com/en-us/cpp/overview/install-c17-support?view=msvc-170
If we do support the latest two releases of Vistual Studio ( |
You mean I have no windows programming experience at all. as per these documentations: https://learn.microsoft.com/en-us/cpp/c-language/structure-declarations?view=msvc-140 It seems that |
@leleliu008, let's merge this. |
Thank you. I'll make a pull request that uses the "anonymous struct and union" of C11 and see what happens. |
Yes. |
@leleliu008 @k-takata Can we remove the combination
from appveyor.yml now? I would like to work on #3795 after making the pull request pass all the testing. |
this PR is implemented as https://github.com/universal-ctags/ctags/blob/master/win32/appveyor.bat#L63-L105 https://github.com/universal-ctags/ctags/blob/master/win32/appveyor.bat#L107-L109 is left, I don't known if https://github.com/universal-ctags/ctags/blob/master/.github/workflows/testing-msys2.yml#L56 is covered these tests. if not, we should add these tests to testing-msys2.yml |
If you just want to pass the workflows on appveyor, I think applying following patch is the easiest way: diff --git a/appveyor.yml b/appveyor.yml
index edd8c5ae..f8a38380 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -16,6 +16,7 @@ environment:
# MSYSTEM: MINGW32
- compiler: msvc
ARCH: x64
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
#- compiler: msvc
# ARCH: x86
- compiler: mingw Reference: https://www.appveyor.com/docs/build-environment/#choosing-image-for-your-builds If the build configuration does not specify build worker image then our |
@masatake
I think |
It seems that the code generated by packcc causes the warnings. I'll look into it. |
What I'm confused is that GitHub Actions and AppVeyor both use |
The AppVeyor job is compiled with |
@k-takata Thank you very much for the hint. |
It seems that |
No description provided.