Skip to content

Commit b790acd

Browse files
committed
CI updates
1 parent 1533367 commit b790acd

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
22
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3-
name: CMake on multiple platforms
3+
name: CI
44

55
on:
66
push:
@@ -23,7 +23,7 @@ jobs:
2323
#
2424
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2525
matrix:
26-
os: [ubuntu-latest, windows-latest]
26+
os: [ubuntu-latest, windows-latest, macos-latest]
2727
build_type: [Release]
2828
c_compiler: [gcc, clang, cl]
2929
include:
@@ -36,13 +36,20 @@ jobs:
3636
- os: ubuntu-latest
3737
c_compiler: clang
3838
cpp_compiler: clang++
39+
- os: macos-latest
40+
c_compiler: clang
41+
cpp_compiler: clang++
3942
exclude:
4043
- os: windows-latest
4144
c_compiler: gcc
4245
- os: windows-latest
4346
c_compiler: clang
4447
- os: ubuntu-latest
4548
c_compiler: cl
49+
- os: macos-latest
50+
c_compiler: gcc
51+
- os: macos-latest
52+
c_compiler: cl
4653

4754
steps:
4855
- uses: actions/checkout@v4

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Overview
2+
3+
[![Build Status](https://github.com/vpiotr/utest/actions/workflows/ci.yml/badge.svg)](https://github.com/vpiotr/utest/actions/workflows/ci.yml)
4+
[![License](https://img.shields.io/github/license/vpiotr/utest)](https://github.com/vpiotr/utest/blob/main/LICENSE.txt)
5+
[![C++11](https://img.shields.io/badge/C%2B%2B-11-blue.svg)](https://isocpp.org/std/the-standard)
6+
27
Micro (header-only) library for unit testing.
38

49
Library author: Piotr Likus

include/utest.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@
8181
#include <map>
8282
#include <iomanip>
8383

84+
// Cross-platform function name macro compatibility
85+
#ifndef __PRETTY_FUNCTION__
86+
#ifdef _MSC_VER
87+
#define __PRETTY_FUNCTION__ __FUNCSIG__
88+
#elif defined(__GNUC__)
89+
#define __PRETTY_FUNCTION__ __PRETTY_FUNCTION__
90+
#else
91+
#define __PRETTY_FUNCTION__ __FUNCTION__
92+
#endif
93+
#endif
94+
8495
namespace utest {
8596

8697
/**

0 commit comments

Comments
 (0)