summaryrefslogtreecommitdiff
path: root/.github/workflows/cmake.yml
diff options
context:
space:
mode:
authorOskari Timperi <808235+oskaritimperi@users.noreply.github.com>2022-09-15 22:18:50 +0300
committerGitHub <noreply@github.com>2022-09-15 22:18:50 +0300
commitccb23038ad8d5dd065d492a262de8240687b2a24 (patch)
treed22614d0c5007e0da12fa50e553cf53210be8d9f /.github/workflows/cmake.yml
parentc32f4d2e1a0b1a2d054c5fd9d490d517fd53f8dc (diff)
downloadbeefysqlite-ccb23038ad8d5dd065d492a262de8240687b2a24.tar.gz
beefysqlite-ccb23038ad8d5dd065d492a262de8240687b2a24.zip
Add github actions workflow
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