File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ - push
3+
4+ jobs :
5+ build-clang :
6+ runs-on : windows-latest
7+ steps :
8+ - uses : actions/checkout@v4
9+ - run : |
10+ cmake -Bbuild -GNinja -DCMAKE_C_COMPILER=clang
11+ cmake --build build
12+ build-msvc :
13+ runs-on : windows-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - run : |
17+ cmake -Bbuild
18+ cmake --build build
Original file line number Diff line number Diff line change @@ -66,12 +66,11 @@ ifneq ($(shared), not-set)
6666endif
6767
6868define run-config
69- mkdir -p $(BUILDDIR )
70- cd $(BUILDDIR ) && cmake $(CURDIR ) $(CONFIG_FLAGS )
69+ cmake $(CURDIR ) -B"$(BUILDDIR ) " $(CONFIG_FLAGS )
7170endef
7271
7372all clean install : $(BUILDDIR )
74- make -C $(BUILDDIR ) $@
73+ make --build $(BUILDDIR ) $@
7574
7675uninstall :
7776 xargs rm < $(BUILDDIR ) /install_manifest.txt
Original file line number Diff line number Diff line change 11# Helper modules.
22
33# Add compiler flags.
4- if (MSVC )
4+ if (WIN32 )
55 set (GKlib_COPTS "/Ox" )
66 set (GKlib_COPTIONS "-DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE -DUSE_GKREGEX" )
77elseif (MINGW)
88 set (GKlib_COPTS "-DUSE_GKREGEX" )
99else ()
1010 set (GKlib_COPTIONS "-DLINUX -D_FILE_OFFSET_BITS=64" )
11- endif (MSVC )
11+ endif (WIN32 )
1212
1313if (CYGWIN )
1414 set (GKlib_COPTIONS "${GKlib_COPTIONS} -DCYGWIN" )
You can’t perform that action at this time.
0 commit comments