-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 957 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
33
34
35
36
name: tests
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
jobs:
build_job:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
with:
path: build/vcpkg_installed
key: ${{ runner.os }}-vcpkg-${{ hashFiles('./vcpkg.json') }}
restore-keys: ${{ runner.os }}-vcpkg-
- name: installing
run: |
sudo apt install cmake make g++ clang-tidy
git clone https://github.com/microsoft/vcpkg
- name: configuring
run: cmake -DCMAKE_TOOLCHAIN_FILE=${PWD}/vcpkg/scripts/buildsystems/vcpkg.cmake -S . -B build -DBUILD_TESTING=ON
- name: building
run: cmake --build build -j $(nproc)
- name: testing
run: ctest -VV --test-dir build/tests