-
-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (48 loc) · 1.27 KB
/
build.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
name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ubuntu-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure CMake and build
run: ${{ github.workspace }}/scripts/build.sh
- name: Running tests
run: |
${{ github.workspace }}/scripts/test.sh
env:
HOOK_HOME: ${{ github.workspace }}
- name: Code coverage
run: |
gcov src/*.c
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Configure CMake and build
run: ${{ github.workspace }}/scripts/build.sh
- name: Running tests
run: |
${{ github.workspace }}/scripts/test.sh
env:
HOOK_HOME: ${{ github.workspace }}
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Configure CMake and build
run: ${{ github.workspace }}/scripts/build.bat
- name: Running tests
run: |
${{ github.workspace }}/scripts/test.bat
env:
HOOK_HOME: ${{ github.workspace }}