-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (37 loc) · 1.16 KB
/
test.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
# Copyright (c) Borislav Stanimirov
# SPDX-License-Identifier: MIT
#
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
type: [Debug, RelWithDebInfo]
steps:
- name: Clone
uses: actions/checkout@v3
- name: VC Vars
# Setup vcvars on Windows
# MSVC's address sanitizer attaches dependencies to several DLLs which are not in PATH
# vcvars will add them to PATH and allow msvc asan executables to run
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
toolset: 14.38.33130
- name: Configure
run: cmake . -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DSAN_ADDR=1
- name: Build
run: cmake --build . --config ${{ matrix.type }}
- name: Test
run: ctest -C ${{ matrix.type }} --output-on-failure
- name: Example
run: cmake --build . --config Release --target=picobench-run-example-basic
# TODO: ./picobench "sleep 0.3" "sleep 0.22"