summaryrefslogtreecommitdiff
path: root/.github/workflows/cmake.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/cmake.yml')
-rw-r--r--.github/workflows/cmake.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
new file mode 100644
index 0000000..d8ed318
--- /dev/null
+++ b/.github/workflows/cmake.yml
@@ -0,0 +1,30 @@
+name: CMake
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Configure CMake (Windows)
+ run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64
+ if: runner.os == 'Windows'
+
+ - name: Configure CMake (non-Windows)
+ run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
+ if: runner.os != 'Windows'
+
+ - name: Build
+ # Build your program with the given configuration
+ run: cmake --build ${{github.workspace}}/build --config Release