-
Notifications
You must be signed in to change notification settings - Fork 19
40 lines (35 loc) · 953 Bytes
/
c-cpp.yml
File metadata and controls
40 lines (35 loc) · 953 Bytes
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
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-24.04
container:
image: debian:trixie
options: --user root
steps:
- name: install
run: |
apt-get update
apt-get install -y build-essential debhelper cmake git pkg-config \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
python3-build \
linux-headers-generic
- name: checkout
uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
git config --global --add safe.directory $(pwd)
git submodule update --init --recursive
export KVERSION=$(find /lib/modules/ -name 6.* | awk -F '/' '{print$4}')
export CONFIGURED_ARCH=amd64
export KERNEL_SRC=/lib/modules/${KVERSION}
dpkg-buildpackage -b -us -uc -tc -j$(nproc)