-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 1.44 KB
/
action.yml
File metadata and controls
62 lines (60 loc) · 1.44 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
name: Hello Action
on:
push:
branches:
- master
jobs:
build_ubuntu:
name: build ubuntu
runs-on: ubuntu-latest
steps:
- name: setup-cpp
run: |
sudo apt install -y build-essential cmake lcov
- name: checkout
uses: actions/checkout@master
- name: build cpp
run: |
cmake -H. -Bbuild
cmake --build build -- -j${nproc}
- name: execute program
run: |
cd build
./helloaction
- name: lcov
run: |
cd build
lcov -c -d CMakeFiles -o cov.info
- name: upload to codecov
uses: codecov/codecov-action@master
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/cov.info
name: ubuntu
build_macos:
name: build macos
runs-on: macos-latest
steps:
- name: setup-cpp
run: |
brew install cmake lcov
- name: checkout
uses: actions/checkout@master
- name: build cpp
run: |
cmake -H. -Bbuild
cmake --build build -- -j 4
- name: execute program
run: |
cd build
./helloaction
- name: lcov
run: |
cd build
lcov -c -d CMakeFiles -o cov.info
- name: upload to codecov
uses: codecov/codecov-action@master
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/cov.info
name: macos