Skip to content

Commit ff95e93

Browse files
committed
chore: use task instead of make
make is very slow on Windows and causes a lot of problems overall
1 parent 00cff15 commit ff95e93

2 files changed

Lines changed: 16 additions & 21 deletions

File tree

Makefile

Lines changed: 0 additions & 21 deletions
This file was deleted.

Taskfile.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://taskfile.dev/#/installation
2+
version: 3
3+
4+
tasks:
5+
test:
6+
- cmake ./test -B ./test/build -DCMAKE_BUILD_TYPE:STRING=Debug -G "Ninja Multi-Config"
7+
- cmake --build ./test/build --config Debug
8+
- cd ./test/build && ctest -C Debug --verbose
9+
10+
format:
11+
- clang-format -i ./test/*.cpp
12+
- cmake-format --in-place ./Index.cmake ./src/*.cmake
13+
14+
lint: cmake-lint ./Index.cmake ./src/*.cmake
15+
16+
clean: 'cd test && {{if eq OS "windows"}} cmd /c "if exist build ( rmdir /s/q build )" {{else}} rm -rf build {{end}}'

0 commit comments

Comments
 (0)