-
Notifications
You must be signed in to change notification settings - Fork 15
72 lines (72 loc) · 1.91 KB
/
build.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
---
name: CI
on:
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-artifacts:
name: Build Artifacts
strategy:
fail-fast: false
matrix:
kernel_version:
- '6.8.2'
- '5.16.18'
- '5.15.63'
- '5.14.0'
- '5.11.19'
- '5.10.139'
- '5.4.210'
- '5.4.17'
- '4.16.18'
- '4.18.0'
- '4.14.291'
- '3.10.0'
libc:
- static
- glibc
- musl
exclude:
# excludes static on 3.10.0 (https://github.com/netdata/kernel-collector/issues/153)
- kernel_version: 3.10.0
libc: static
- kernel_version: 5.4.17
libc: static
# excludes musl on 3.10.0
- kernel_version: 3.10.0
libc: musl
- kernel_version: 5.4.17
libc: musl
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Run build.sh
run: |
if [ ${{ matrix.kernel_version }} = "5.14.0" ]; then
os=centos9
elif [ ${{ matrix.kernel_version }} = "5.4.17" ]; then
os=oracle8
elif [ ${{ matrix.kernel_version }} = "4.18.0" ]; then
os=centos8
elif [ ${{ matrix.kernel_version }} = "3.10.0" ]; then
os=centos7
else
os=generic
fi
./build.sh ${{ matrix.kernel_version }} ${{ matrix.libc }} "${os}"
- name: List Artifacts
run: |
ls -lah artifacts
test -f artifacts/netdata_ebpf-*.tar.xz
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: artifacts-${{ matrix.kernel_version }}-${{ matrix.libc }}
path: artifacts