Skip to content

Commit

Permalink
GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 24, 2019
1 parent 3bc199e commit a557e71
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 108 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: build

on: [push, pull_request]

jobs:

linux:
timeout-minutes: 5

strategy:
matrix:
os: [ubuntu-18.04]
compiler: [g++, clang++]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- name: Compile tests
working-directory: build
env:
CXX: ${{ matrix.compiler }}
run: |
cmake -DBUILD_TESTING=ON ..
make -j4
- name: Run tests
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest --timeout 5 -C Debug -j4

windows:
timeout-minutes: 5

strategy:
matrix:
os: [windows-2019, windows-2016]
include:
- os: windows-2019
generator: Visual Studio 16 2019
- os: windows-2016
generator: Visual Studio 15 2017

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- name: Compile tests
working-directory: build
run: |
cmake -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS=/W1 -G"${{ matrix.generator }}" ..
cmake --build . -j 4
- name: Run tests
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest --timeout 5 -C Debug -j4

macos:
timeout-minutes: 5
runs-on: macOS-10.14

steps:
- uses: actions/checkout@v1
- name: Compile tests
working-directory: build
run: |
cmake -DBUILD_TESTING=ON ..
make -j4
- name: Run tests
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest --timeout 5 -C Debug -j4
39 changes: 39 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: coverage

on: [push, pull_request]

jobs:

coveralls:
timeout-minutes: 5
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Reattach HEAD
run: git checkout "$(echo ${{ github.ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
- name: Compile tests
working-directory: build
env:
CXXFLAGS: "-O0 --coverage -fno-inline -fno-inline-small-functions -fno-default-inline"
CXX: g++
run: |
cmake -DBUILD_TESTING=ON ..
make -j4
- name: Run tests
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest --timeout 5 -C Debug -j4
- name: Setup Python
uses: actions/setup-python@master
with:
version: 3.7
- name: Update coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install --upgrade wheel
pip install cpp-coveralls
coveralls --gcov gcov-7 --gcov-options '\-lp' -r . -b build -x cpp -x hpp -e deps -i src
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,14 @@ endif()
# AOB
#

FILE(GLOB GH_WORKFLOWS .github/workflows/*.yml)

add_custom_target(
meta_aob
SOURCES
appveyor.yml
${GH_WORKFLOWS}
.github/FUNDING.yml
AUTHORS
LICENSE
README.md
.travis.yml
)
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@
<!--
@cond TURN_OFF_DOXYGEN
-->
[![GitHub version](https://badge.fury.io/gh/skypjack%2Fmeta.svg)](http://badge.fury.io/gh/skypjack%2Fmeta)
[![LoC](https://tokei.rs/b1/github/skypjack/meta)](https://github.com/skypjack/meta)
[![Build Status](https://travis-ci.org/skypjack/meta.svg?branch=master)](https://travis-ci.org/skypjack/meta)
[![Build status](https://ci.appveyor.com/api/projects/status/xs3bos4xl06y0wyv?svg=true)](https://ci.appveyor.com/project/skypjack/meta)
[![Coverage Status](https://coveralls.io/repos/github/skypjack/meta/badge.svg?branch=master)](https://coveralls.io/github/skypjack/meta?branch=master)
[![GitHub version](https://badge.fury.io/gh/skypjack%2Fmeta.svg)](https://github.com/skypjack/meta/releases)
[![Build Status](https://github.com/skypjack/meta/workflows/build/badge.svg)](https://github.com/skypjack/meta/actions)
[![Coverage Status](https://codecov.io/gh/skypjack/meta/branch/master/graph/badge.svg)](https://codecov.io/gh/skypjack/meta)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/skypjack)

[![Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?c=1772573)
[![Patreon](https://img.shields.io/badge/become-patron-red.svg)](https://www.patreon.com/bePatron?c=1772573)

> The reflection system was born within [EnTT](https://github.com/skypjack/entt)
> and is developed and enriched there. This project is designed for those who
> are interested only in a header-only, full-featured, non-intrusive and macro
> free reflection system which certainly deserves to be treated also separately
> due to its quality and its rather peculiar features.
If you use `meta` and you want to say thanks or support the project, please
**consider becoming a patron**:

[![Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?c=1772573)

[Many thanks](https://skypjack.github.io/patreon/) to those who supported me and
still support me today.

# Table of Contents

* [Introduction](#introduction)
Expand Down
44 changes: 0 additions & 44 deletions appveyor.yml

This file was deleted.

0 comments on commit a557e71

Please sign in to comment.