mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
feat(CI): Run ctests in the cloud during push.
This commit is contained in:
parent
cf6a5f6c0d
commit
68f97d301d
30
.github/workflows/ctest.yml
vendored
Normal file
30
.github/workflows/ctest.yml
vendored
Normal 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
|
@ -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>")
|
||||
|
Loading…
Reference in New Issue
Block a user