mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-25 08:24:50 -04:00
feat(CI): Run ctests in the cloud during push.
This commit is contained in:
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
|
Reference in New Issue
Block a user