1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-02-01 04:48:27 +00:00

Create cmake.yml

This commit is contained in:
Bret Curtis 2021-09-14 20:28:02 +02:00 committed by GitHub
parent b6f572578e
commit 8352e27a10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

29
.github/workflows/cmake.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: CMake
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: debian-latest
steps:
- uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}