-
Notifications
You must be signed in to change notification settings - Fork 37
87 lines (70 loc) · 1.79 KB
/
ci.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ${{matrix.os}}
strategy:
matrix:
config: [shared, static]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
cache-key-prefix: install-qt-action-${{runner.os}}
- name: Git Checkout
uses: actions/checkout@v4
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.12.1
if: matrix.os == 'windows-latest'
- name: Build
run: |
qmake -v
./configure -verbose -config ${{matrix.config}}
make -j2
if: matrix.os != 'windows-latest'
- name: Build
run: |
qmake -v
qmake -config verbose -config ${{matrix.config}}
set CL=/MP
nmake
shell: cmd
if: matrix.os == 'windows-latest'
- name: Run Tests
run: make check
if: matrix.os == 'ubuntu-latest'
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
cache-key-prefix: install-qt-action-${{runner.os}}
- name: Install LCOV
run: sudo apt install lcov
- name: Git Checkout
uses: actions/checkout@v4
- name: Configure
run: |
qmake -v
./configure -verbose -config coverage -config no_examples
- name: Build
run: make -j2
- name: Measure Coverage
run: |
make coverage
cat coverage/Irc*.cov > coverage/lcov.info
- name: Upload Coverage
uses: codecov/codecov-action@v1.0.6
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/lcov.info