From d7f43a339a58a5a47db181bf150db1eeb80f9a9c Mon Sep 17 00:00:00 2001 From: SteveGremory Date: Mon, 6 Jun 2022 20:58:22 +0530 Subject: [PATCH] Added CI Support for the CMake build, Linux/macOS only (for now) --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 399c042..bc0af44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -275,3 +275,20 @@ jobs: curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal cd /work ~/.cargo/bin/cargo test --features prefer_intrinsics + + # CMake build test (Library only), current macOS/Linux only. + cmake_build: + name: CMake ${{ matrix.target.os }} + runs-on: ${{ matrix.target.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest", "macOS-latest"] + steps: + - uses: actions/checkout@v3 + - name: CMake generation + run: cmake . -Bbuild + working-directory: ./c + - name: CMake build + run: cmake --build build/ + working-directory: ./c