Skip to content

Commit 6760c62

Browse files
committed
Add CI to build with clang on Windows
1 parent 4bab8dc commit 6760c62

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
- push
3+
4+
jobs:
5+
build:
6+
runs-on: windows-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
# Also enable GKREGEX, because building with Ninja does not count as MSVC hence it doesn't get enabled by default
10+
- run: cmake -Bbuild -GNinja -DCMAKE_C_COMPILER=clang -DGKREGEX=ON
11+
# -DCMAKE_CXX_COMPILER=clang++
12+
- run: cmake --build build
13+

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ ifneq ($(cputype), x86_64)
6262
endif
6363

6464
define run-config
65-
mkdir -p $(BUILDDIR)
66-
cd $(BUILDDIR) && cmake $(CURDIR) $(CONFIG_FLAGS)
65+
cmake $(CURDIR) -B"$(BUILDDIR)" $(CONFIG_FLAGS)
6766
endef
6867

6968
all clean install: $(BUILDDIR)
70-
make -C $(BUILDDIR) $@
69+
make --build $(BUILDDIR) $@
7170

7271
uninstall:
7372
xargs rm < $(BUILDDIR)/install_manifest.txt

0 commit comments

Comments
 (0)