-
-
Notifications
You must be signed in to change notification settings - Fork 265
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 Cygwin GitHub Action. #4112
Conversation
#define _GNU_SOURCE |
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.
The yaml additions look good - Omly complaint is the name cwin-* maybe should be cygwin-*
OH, yes tests may use different flags |
configure.ac
Outdated
@@ -1519,6 +1519,10 @@ case "$host_cpu-$host_vendor-$host_os" in | |||
AC_DEFINE([HAVE_MINGW], [1], [Define if using MinGW]) | |||
H5_CPPFLAGS="-D_GNU_SOURCE -D__USE_MINGW_ANSI_STDIO $H5_CPPFLAGS" | |||
;; | |||
*cygwin*) | |||
AC_DEFINE([HAVE_CYGWIN], [1], [Define if using MinGW]) | |||
H5_CPPFLAGS="-D_GNU_SOURCE" |
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.
Might need $H5_CPPFLAGS so that it is appeneded (see the linux section above - line 1514)
cd build | ||
ctest -T Build |
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.
cd build | |
ctest -T Build | |
cmake --build build -- -j8 |
mkdir build | ||
cd build | ||
cmake -G Ninja \ |
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.
mkdir build | |
cd build | |
cmake -G Ninja \ | |
cmake -S . -B build -G Ninja \ |
cd build | ||
ctest -T Test |
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.
cd build | |
ctest -T Test | |
ctest --test-dir build -T Test |
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.
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.
Sure, it's give and take. ❤️
(Cygwin via autotools was already tested in matio via Appveyor.)
#4131 supersedes this PR - closing |
CMake test passes if
test/th5_system.c
has the following patch:Autotools test fails with the following error: