From bac5c37b63477b57a60661d4f51e04d1f694096b Mon Sep 17 00:00:00 2001 From: adrian-soch Date: Sat, 30 Mar 2024 16:22:03 -0400 Subject: [PATCH] try macos workflow --- .github/workflows/mac_ci.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/mac_ci.yaml diff --git a/.github/workflows/mac_ci.yaml b/.github/workflows/mac_ci.yaml new file mode 100644 index 0000000..6695198 --- /dev/null +++ b/.github/workflows/mac_ci.yaml @@ -0,0 +1,29 @@ +name: MacOS C++ CI + +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install CMake and gtest + run: | + brew install cmake + brew install googletest + + - name: Create build directory + run: mkdir build && cd build + + - name: Configure CMake + run: cmake .. -G "Unix Makefiles" + + - name: Build + run: cmake --build . + + - name: Test with ctest + run: ctest