aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMichael Keck <[email protected]>2023-03-21 14:24:33 +0100
committerGitHub <[email protected]>2023-03-21 09:24:33 -0400
commit07a40ef0f9e5355d422f271da9a115219d0e9308 (patch)
tree6df994400bd1c1545d7831b9809782aa7a76723a /.github
parenteb89a34d66ac56256de2ad27e686e85c88d04c0f (diff)
downloadenet-07a40ef0f9e5355d422f271da9a115219d0e9308.tar.gz
enet-07a40ef0f9e5355d422f271da9a115219d0e9308.zip
Add GitHub Actions CI (#188)
Add GitHub Actions CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
new file mode 100644
index 0000000..721d430
--- /dev/null
+++ b/.github/workflows/cmake.yml
@@ -0,0 +1,21 @@
+on: [push, pull_request]
+
+name: CMake
+
+jobs:
+ cmake-build:
+ name: CMake ${{ matrix.os }} ${{ matrix.build_type }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: ["ubuntu-latest", "windows-latest", "macos-latest"]
+ build_type: ["Debug", "Release"]
+ steps:
+ - uses: actions/checkout@v3
+
+ - 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 }}