forked from libbpf/libbpf-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (62 loc) · 1.69 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
name: libbpf-bootstrap build
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '7 17 * * *'
jobs:
build_libbpf_bootstrap:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
llvm: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build container (20.04)
if: ${{ matrix.llvm < 14 }}
uses: docker/build-push-action@v3
with:
push: false
build-args: |
LLVM_VERSION=${{ matrix.llvm }}
VERSION=20.04
SHORTNAME=focal
file: ./.github/docker/Dockerfile.ubuntu
tags: build_container
- name: Build container (22.04)
if: ${{ matrix.llvm >= 14 }}
uses: docker/build-push-action@v3
with:
push: false
build-args: |
LLVM_VERSION=${{ matrix.llvm }}
VERSION=22.04
SHORTNAME=jammy
file: ./.github/docker/Dockerfile.ubuntu
tags: build_container
- name: Build examples/c -- GNU Make
run: |
docker run \
-v $(pwd):/libbpf-bootstrap \
build_container \
/bin/bash -c \
'cd /libbpf-bootstrap/examples/c && make -j`nproc`'
- name: Build examples/c -- CMake
run: |
docker run \
-v $(pwd):/libbpf-bootstrap \
build_container \
/bin/bash -c \
'cd /libbpf-bootstrap/examples/c && cmake ./ && make'
- name: Build examples/rust
run: |
docker run \
-v $(pwd):/libbpf-bootstrap \
build_container \
/bin/bash -c \
'cd /libbpf-bootstrap/examples/rust && cargo build'