-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 955 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
37
38
39
40
name: Tests
on: [push, pull_request]
jobs:
build:
name: Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2022, macos-14]
steps:
- name: Install Pre-requisits on ubuntu
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt-get -qy update
sudo apt-get install g++ ninja-build cmake
ninja --version
cmake --version
g++ --version
- name: Install dependencies on windows
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
choco install ninja cmake
ninja --version
cmake --version
- uses: actions/checkout@v4
- name: cmake build
run: |
mkdir build
cmake -Bbuild -S.
cmake --build build/ --target hyperloglog_tests
- name: Run tests
working-directory: build
run: ctest -C Debug --output-on-failure