-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (65 loc) · 2.03 KB
/
ci.yml
File metadata and controls
73 lines (65 loc) · 2.03 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: CI
run-name: ${{ github.actor }} CI
on:
push:
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
build-and-test:
runs-on: ${{ matrix.sys.os }}
timeout-minutes: 15
strategy:
matrix:
sys:
- { os: windows-latest, shell: bash }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
configuration:
- placeholder
defaults:
run:
shell: ${{ matrix.sys.shell }}
env:
OS: ${{ matrix.sys.os }}
CTEST_OUTPUT_ON_FAILURE: 1
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CPM_SOURCE_CACHE: ${{ github.workspace }}/.cache/CPM
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- run: |
echo "🎉 job triggered by ${{ github.event_name }} event."
echo "🐧 running on ${{ runner.os }} server branch ${{ github.ref }} repository ${{ github.repository }}."
echo "💡 cloning ${{ github.repository }} to ${{ runner.os }}"
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/cache@v3
with:
path: "**/.cache/CPM"
key: ${{ github.workflow }}-${{ runner.os }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: set windows code page to support unicode (UTF-8)
if: runner.os == 'Windows'
shell: bash
run: chcp.com 65001
- run: make debug
- run: make release
- run: make test
- run: make bench
- name: gen coverage info
if: runner.os == 'Linux'
run: make coverage
- name: Upload coverage reports to Codecov
if: runner.os == 'Linux'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/coverage/coverage.info
verbose: true
- run: make install
- name: validate install
if: runner.os != 'Windows'
run: make validate
- run: echo "🍏 This job's status is ${{ job.status }}."