Skip to content

Commit 8ae7604

Browse files
committed
feat: Added CMake GitHub Action
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 5125e25 commit 8ae7604

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
- name: Checkout
2626
id: checkout
2727
uses: actions/checkout@v2
28-
- name: Building files
28+
- name: Configuring CMake files
2929
id: building-files
3030
run: |
31-
make
31+
mkdir build && cd build && cmake ..
3232
- name: Building library
3333
id: building-lib
3434
run: |
35-
make library
35+
cd build && cmake --build . --config Debug --target all -j 10 --
3636
- name: Cleanup
37-
id: cleanup
37+
id: clean-up
3838
run: |
39-
make clean
39+
rm -r build lib
4040
4141
macos:
4242
name: "macOS Catalina 10.15"
@@ -45,15 +45,15 @@ jobs:
4545
- name: Checkout
4646
id: checkout
4747
uses: actions/checkout@v2
48-
- name: Building files
48+
- name: Configuring CMake files
4949
id: building-files
5050
run: |
51-
make
51+
mkdir build && cd build && cmake ..
5252
- name: Building library
5353
id: building-lib
5454
run: |
55-
make library
55+
cd build && cmake --build . --config Debug --target all -j 10 --
5656
- name: Cleanup
57-
id: cleanup
57+
id: clean-up
5858
run: |
59-
make clean
59+
rm -r build lib

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16)
1+
cmake_minimum_required(VERSION 3.19)
22

33
set(CMAKE_WARN_DEPRECATED ON)
44

0 commit comments

Comments
 (0)