-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 869 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: GitHub CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
debug:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test debug
run: |
./scripts/dr.sh "rm -rf build_linux_debug"
./scripts/dr.sh "mkdir build_linux_debug; cd build_linux_debug; cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug; ninja"
./scripts/dr.sh "cd build_linux_debug; ctest -N; ctest --output-on-failure"
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test release
run: |
./scripts/dr.sh "rm -rf build_linux_release"
./scripts/dr.sh "mkdir build_linux_release; cd build_linux_release; cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release; ninja"
./scripts/dr.sh "cd build_linux_release; ctest -N; ctest --output-on-failure"