Skip to content

Commit

Permalink
chore: use task instead of make
Browse files Browse the repository at this point in the history
make is very slow on Windows and causes a lot of problems overall
  • Loading branch information
aminya committed Dec 10, 2021
1 parent 00cff15 commit ff95e93
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

16 changes: 16 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://taskfile.dev/#/installation
version: 3

tasks:
test:
- cmake ./test -B ./test/build -DCMAKE_BUILD_TYPE:STRING=Debug -G "Ninja Multi-Config"
- cmake --build ./test/build --config Debug
- cd ./test/build && ctest -C Debug --verbose

format:
- clang-format -i ./test/*.cpp
- cmake-format --in-place ./Index.cmake ./src/*.cmake

lint: cmake-lint ./Index.cmake ./src/*.cmake

clean: 'cd test && {{if eq OS "windows"}} cmd /c "if exist build ( rmdir /s/q build )" {{else}} rm -rf build {{end}}'

0 comments on commit ff95e93

Please sign in to comment.