-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.23 KB
/
c-cpp.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
name: Build and test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
# PYTHON: '3.10'
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y autopoint meson ninja-build gettext libunwind-dev libefl-all-dev libeet1 libeet-bin
sudo apt-get install -y check lcov
- name: Setup python
uses: actions/setup-python@master
# with:
# python-version: 3.10
- name: Install python dependencies
run: pip install lxml
- name: Setup project (meson)
run: meson setup . build -Db_coverage=true -Dbuild-tests=true
- name: Build project (ninja)
run: ninja -C build
- name: Run tests (ninja)
run: ninja -C build test
- name: Generate coverage report
run: ./scripts/generate_coverage_report.sh
- name: Upload to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
directory: ./build/meson-logs/
files: ./coverage.xml
verbose: true