-
Notifications
You must be signed in to change notification settings - Fork 216
55 lines (46 loc) · 1.28 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Hana CI
permissions:
contents: read
on: pull_request
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
xcode-version: latest-stable
- os: macos-latest
compiler: llvm
# - os: macos-latest
# compiler: gcc
# - os: windows-latest
# compiler: llvm
- os: ubuntu-latest
compiler: llvm
# - os: ubuntu-latest
# compiler: gcc
steps:
- name: Setup build environment
uses: aminya/setup-cpp@v1
with:
vcvarsall: ${{ contains(matrix.os, 'windows') }}
cmake: true
ninja: true
- name: Setup compiler
uses: aminya/setup-cpp@v1
if: ${{ matrix.compiler }}
with:
compiler: ${{ matrix.compiler }}
- name: Install Xcode
uses: maxim-lobanov/setup-xcode@v1
if: ${{ matrix.xcode-version }}
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Checkout source code
uses: actions/checkout@v3
- name: Configure CMake
run: mkdir build && cmake -S . -B build -G Ninja
- name: Run the tests
run: cmake --build build --target check