-
Notifications
You must be signed in to change notification settings - Fork 36
73 lines (55 loc) · 1.82 KB
/
pr.yml
File metadata and controls
73 lines (55 loc) · 1.82 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
63
64
65
66
67
68
69
70
71
72
73
name: pull-request-ci
on: [push, pull_request]
jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system build dependencies
run: >
sudo apt-get update &&
sudo apt-get install libsystemd-dev ninja-build
- name: Install meson
run: pip install --user meson
- name: Install python dependencies for mctp tests
run: pip install --user -r tests/requirements.txt
- name: Configure mctp build
run: meson setup build -Db_sanitize=address
- name: Build mctp
run: meson compile -C build
- name: Check formatting
run: ninja -C build clang-format-check
- name: Test mctp
run: meson test -C build --verbose
- name: Check python tests
run: ruff check tests/
- name: Format python tests
run: ruff format --diff tests/
- uses: actions/upload-artifact@v4
if: always()
with:
name: default-meson-testlog
path: build/meson-logs/testlog.txt
no-libsystemd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system build dependencies
run: >
sudo apt-get update &&
sudo apt-get install ninja-build
- name: Install meson
run: pip install --user meson
- name: Install python dependencies for mctp tests
run: pip install --user -r tests/requirements.txt
- name: Configure mctp build
run: meson setup build -Db_sanitize=address
- name: Build mctp
run: meson compile -C build
- name: Test mctp
run: meson test -C build --verbose
- uses: actions/upload-artifact@v4
if: always()
with:
name: no-libsystemd-meson-testlog
path: build/meson-logs/testlog.txt