浏览代码

.github: add CMake run

Kosma Moczek 3 年之前
父节点
当前提交
8e5aaabd03
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .github/workflows/c-cpp.yml

+ 3 - 1
.github/workflows/c-cpp.yml

@@ -8,6 +8,8 @@ jobs:
     steps:
     - uses: actions/checkout@v3
     - name: Install dependencies
-      run: sudo apt-get install -y clang-tools check
+      run: sudo apt-get install -y clang-tools check cmake
     - name: make
       run: make
+    - name: cmake
+      run: "( rm -rf build && mkdir build && cd build && cmake .. && make && ./tests && echo OK )"