-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (41 loc) · 1.01 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
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Robin Jarry
---
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- run: |
dnf install -y \
make gcc ninja-build meson git gcovr scdoc \
libasan \
libcmocka-devel \
libedit-devel \
libevent-devel \
numactl-devel \
python3-pyelftools
- uses: actions/checkout@v4
- run: make
- run: make coverage
lint:
runs-on: ubuntu-latest
container: debian:testing
env:
DEBIAN_FRONTEND: noninteractive
steps:
- run: sudo apt-get install -y make clang-format git
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: make lint
- run: |
git config --global --add safe.directory $PWD
git log --oneline --decorate "${{ github.head_ref }}..${{ github.ref }}"
if: ${{ github.head_ref }}