File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 57
57
- name : Build the project
58
58
shell : cmd
59
59
run : make -j CC=gcc
60
+
61
+ test-mingw-linux :
62
+ name : Build and test with Mingw on Linux + Wine
63
+ runs-on : ubuntu-latest
64
+ steps :
65
+ - name : Checkout the repository
66
+ uses : actions/checkout@master
67
+ - name : Setup Mingw and wine
68
+ run : |
69
+ sudo dpkg --add-architecture i386
70
+ sudo apt-get update
71
+ sudo apt-get install libstdc++6:i386 libgcc-s1:i386
72
+ sudo apt-get install gcc-mingw-w64-x86-64-win32 wine wine32 wine64
73
+ - name : Compile the project
74
+ run : make clean && make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-gcc UNAME=MINGW RUN=wine
75
+ - name : Test the project
76
+ run : make test UNAME=MINGW RUN=wine
Original file line number Diff line number Diff line change 50
50
#define WIN32_LEAN_AND_MEAN
51
51
#endif
52
52
53
+ /* needed for inet_pton and InitializeSRWLock */
54
+ #ifdef __MINGW32__
55
+ #define _WIN32_WINNT _WIN32_WINNT_VISTA
56
+ #endif
57
+
53
58
/* Needed for realpath on linux, as well as pthread rwlocks. */
54
59
#ifndef _XOPEN_SOURCE
55
60
#define _XOPEN_SOURCE 600
You can’t perform that action at this time.
0 commit comments