-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (89 loc) · 2.38 KB
/
on-push.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
88
89
name: Build and Test
on: [push]
jobs:
Validate-Format:
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'include'
- 'bench'
- 'test'
- 'rttest'
- 'examples'
steps:
- uses: actions/checkout@v4
- name: Check code format against formatting rules
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '16'
check-path: ${{ matrix.path }}
Validate-Source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Build Project
run: |
sudo apt install meson zsh
make -f Makefile.Maintainer builddir
cd builddir
meson compile
- name: Check source for avoidable mistakes
run: |
make -f Makefile.Maintainer exportedsymbols
python3 meta/validate-source.py .
Plain-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson setup builddir
- name: Compile
working-directory: builddir
run: |
ninja
With-Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson builddir -Dwith-tests=true --buildtype=debugoptimized
- name: Compile
working-directory: builddir
run: |
ninja
- name: Run tests
working-directory: builddir
run: |
ninja test
Test-Install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson --prefix=$RUNNER_TEMP builddir
- name: Compile and install
working-directory: builddir
run: |
ninja
PREFIX=$RUNNER_TEMP ninja install
- name: Run post-install tests
run: |
PREFIX=$RUNNER_TEMP PKG_CONFIG_PATH=$RUNNER_TEMP/lib/x86_64-linux-gnu/pkgconfig LD_LIBRARY_PATH=$RUNNER_TEMP/lib/x86_64-linux-gnu make -C rttest check