aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2021-05-05 23:14:13 -0400
committerGitHub <noreply@github.com>2021-05-05 23:14:13 -0400
commit562258a7663a8d6447c46059743b173e19196e76 (patch)
treeedf44023e1df638c6666f5e19c213d2e08828d6a /.github
parent84f355252e33510c96adc94114ff7e63e8059d8b (diff)
downloadcleanpath-562258a7663a8d6447c46059743b173e19196e76.tar.gz
Create cmake.yml (#1)
* Create cmake.yml * Do not include limits.h for fun
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
new file mode 100644
index 0000000..bc094b7
--- /dev/null
+++ b/.github/workflows/cmake.yml
@@ -0,0 +1,49 @@
+name: CMake
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+env:
+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
+ BUILD_TYPE: Release
+
+jobs:
+ tests:
+ name: ${{ matrix.name }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: true
+ matrix:
+ include:
+ - name: Debug (Linux)
+ os: ubuntu-latest
+ build_type: Release
+
+ - name: Debug (MacOS)
+ os: macos-latest
+ build_type: Release
+
+ - name: Release (Linux)
+ os: ubuntu-latest
+ build_type: Release
+
+ - name: Release (MacOS)
+ os: macos-latest
+ build_type: Release
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Configure CMake
+ run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
+
+ - name: Build
+ run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }}
+
+ - name: Test
+ working-directory: ${{ github.workspace }}/build
+ run: ctest -C ${{ matrix.build_type }}
+