Skip to content

Commit 7f21dfb

Browse files
committed
feat: Added CMake CI for Windows
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 8ae7604 commit 7f21dfb

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on: [push, pull_request]
1919

2020
jobs:
2121
linux:
22-
name: "Linux Ubuntu 20.04"
22+
name: "Linux Ubuntu 20.04 (GNU 9.3.0)"
2323
runs-on: ubuntu-20.04
2424
steps:
2525
- name: Checkout
@@ -38,8 +38,31 @@ jobs:
3838
run: |
3939
rm -r build lib
4040
41+
windows:
42+
name: "Windows 10 (MSVC 19.29)"
43+
runs-on: windows-latest
44+
steps:
45+
- name: Checkout
46+
id: checkout
47+
uses: actions/checkout@v2
48+
- name: Configuring CMake files
49+
id: building-files
50+
run: |
51+
mkdir build
52+
cd build
53+
cmake ..
54+
- name: Building library
55+
id: building-lib
56+
run: |
57+
cd build
58+
cmake --build . --config Release --target casbin -j 10 --
59+
- name: Cleanup
60+
id: clean-up
61+
run: |
62+
rm -r build lib
63+
4164
macos:
42-
name: "macOS Catalina 10.15"
65+
name: "macOS Catalina 10.15 (AppleClang 12.0)"
4366
runs-on: macos-latest
4467
steps:
4568
- name: Checkout
@@ -56,4 +79,5 @@ jobs:
5679
- name: Cleanup
5780
id: clean-up
5881
run: |
59-
rm -r build lib
82+
rm -r build
83+
rm -r lib

0 commit comments

Comments
 (0)