feat(CI): Run ctests in the cloud during push.

This commit is contained in:
Veikko Sariola 2020-11-12 12:59:14 +02:00
parent cf6a5f6c0d
commit 68f97d301d
2 changed files with 31 additions and 1 deletions

30
.github/workflows/ctest.yml vendored Normal file
View File

@ -0,0 +1,30 @@
# Run unit tests using CTest
name: Tests
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: get-cmake
uses: lukka/get-cmake@v3.18.3
- uses: actions/checkout@v2
- uses: ilammy/setup-nasm@v1.1.0
- run: /home/runner/nasm/nasm -version
- env:
ASM_NASM: /home/runner/nasm/nasm
run: |
mkdir build
cd build
cmake -GNinja ..
ninja
ctest --output-on-failure

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.10)
# This policy is needed so that we can set the MSVC_RUNTIME to statically linked
# i.e. set_property(TARGET 4klang PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")