forked from scipopt/papilo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
39 lines (33 loc) · 971 Bytes
/
Taskfile.yml
File metadata and controls
39 lines (33 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# https://taskfile.dev
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
tasks:
format:libpapilo:
desc: Format only libpapilo codes
cmds:
- clang-format --version
- clang-format -i src/libpapilo.* test/libpapilo/*.{cpp,c}
build:all:
cmds:
- cmake --preset debug
- cmake --build --preset debug
test:all:
cmds:
- task: build:all
- ctest --preset debug
test:libpapilo:
cmds:
- cmake --build --preset debug --target libpapilo_unit_test
- ctest --preset debug --tests-regex libpapilo
local-install:
desc: Build and install to local_install directory
cmds:
- cmake --preset local-install
- cmake --build --preset local-install
- cmake --install build/local-install
package:tgz:
desc: Create TGZ archive for macOS distribution
cmds:
- cmake --preset default
- cmake --build --preset default
- cpack --preset tgz