File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1022,6 +1022,30 @@ jobs:
10221022 ninja
10231023 ./unittest
10241024
1025+ unittest-cygwin :
1026+ runs-on : windows-2022
1027+ needs : unittest-linux
1028+ steps :
1029+ - uses : actions/checkout@v4
1030+ - name : Install Cygwin
1031+ uses : cygwin/cygwin-install-action@v4
1032+ with :
1033+ packages : cmake gcc-g++ ninja git
1034+ - name : build and test
1035+ shell : C:\cygwin\bin\bash.exe --login -o igncr {0}
1036+ run : |
1037+ cd "$GITHUB_WORKSPACE"
1038+ mkdir build
1039+ cd build
1040+ cmake .. \
1041+ -GNinja \
1042+ -DCMAKE_BUILD_TYPE=Debug \
1043+ -DCPPTRACE_WERROR_BUILD=On \
1044+ -DCPPTRACE_STD_FORMAT=Off \
1045+ -DCPPTRACE_BUILD_TESTING=On
1046+ ninja
1047+ ./unittest.exe
1048+
10251049 unittest-windows-32-bit :
10261050 runs-on : windows-2022
10271051 needs : unittest-windows
Original file line number Diff line number Diff line change 88#if defined(_WIN32)
99 #undef IS_WINDOWS
1010 #define IS_WINDOWS 1
11- #elif defined(__linux) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
11+ #elif defined(__linux) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
1212 #undef IS_LINUX
1313 #define IS_LINUX 1
1414#elif defined(__APPLE__)
You can’t perform that action at this time.
0 commit comments