-
Notifications
You must be signed in to change notification settings - Fork 21
34 lines (27 loc) · 807 Bytes
/
ci.yml
File metadata and controls
34 lines (27 loc) · 807 Bytes
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
33
34
name: CI
on:
push:
pull_request:
jobs:
build:
name: Build & Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure (CMake)
run: cmake -S . -B build -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release
- name: Test (CTest)
run: ctest --test-dir build -C Release --output-on-failure --no-tests=error -V
- name: Run application
shell: bash
run: |
exe="build/bin/Release/CVPuzzleSolver"
if [[ "$RUNNER_OS" == "Windows" ]]; then exe="${exe}.exe"; fi
"$exe"