-
Notifications
You must be signed in to change notification settings - Fork 15
161 lines (142 loc) · 5.46 KB
/
build-dynamically-linked.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: build-dynamically-linked
on: [push]
jobs:
build-centos:
name: Build centOS
runs-on: ubuntu-20.04
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
release: [
{ "codename": "centos7" },
{ "codename": "centos8" },
]
container:
image: centos:${{ matrix.release.codename }}
steps:
- name: Install dependencies
if: matrix.release.codename == 'centos7'
# Endpoint repo is added here to install a newer version of git. Runner
# checkout issues have been observed with git < 2.18
run: |
yum install -y epel-release
yum -y install \
https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
yum install -y \
git wget gcc make meson protobuf-c-compiler protobuf-c-devel \
protobuf-compiler zeromq-devel numactl-devel libbsd-devel \
protobuf-python python2-zmq python-devel python-sphinx \
python36-jinja2 python-sphinx_rtd_theme libbsd-devel dpdk \
dpdk-devel
- name: Install dependencies
if: matrix.release.codename == 'centos8'
run: |
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' \
/etc/yum.repos.d/CentOS-*
dnf install -y epel-release dnf-plugins-core
dnf config-manager --set-enabled powertools
dnf install -y \
git wget gcc make meson protobuf-c-compiler protobuf-c-devel \
protobuf-compiler zeromq-devel numactl-devel libbsd-devel \
python3-protobuf python3-zmq python3-devel python3-sphinx \
python3-sphinx_rtd_theme libbsd-devel dpdk dpdk-devel
# Avoid the default shallow clone here (with fetch-depth: 0) because the
# virtio-forwarder versioning scheme is dependant on finding the last tag
# with "git describe" to generate the current version.
- name: Checkout out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add repo to git safe directory list
run: git config --global --add safe.directory `pwd`
# Add the custom PKG_CONFIG_PATH here in case pkg_config_builder.py
# created a libdpdk.pc in /tmp/pkgconfig
- name: Build virtio-forwarder
run:
PKG_CONFIG_PATH=/tmp/pkgconfig meson build && ninja -C build
build-fedora:
name: Build Fedora
runs-on: ubuntu-20.04
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
release: [
{ "codename": "33" },
{ "codename": "34" },
]
container:
image: fedora:${{ matrix.release.codename }}
steps:
- name: Install dependencies
run: |
dnf install -y \
git wget gcc make protobuf-c-compiler protobuf-c-devel \
zeromq-devel protobuf-compiler numactl-devel \
libbsd-devel python3-protobuf python-zmq meson \
python-devel python-sphinx python-sphinx_rtd_theme \
dpdk dpdk-devel
pip3 install meson==0.59.1
- name: Checkout out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add repo to git safe directory list
run: git config --global --add safe.directory `pwd`
- name: Build virtio-forwarder
run:
meson build && ninja -C build
build-ubuntu:
name: Build Ubuntu
runs-on: ubuntu-20.04
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
release: [
{ "codename": "bionic" },
{ "codename": "focal" },
]
container:
image: ubuntu:${{ matrix.release.codename }}
steps:
- name: Install dependencies
if: matrix.release.codename == 'bionic'
env:
DEBIAN_FRONTEND: noninteractive
# git-core PPA is added here to install a newer version of git. Runner
# checkout issues have been observed with git < 2.18
run: |
apt-get update
apt-get install -y software-properties-common
add-apt-repository ppa:git-core/ppa
apt-get install -y \
git wget gcc make debhelper python3-minimal \
protobuf-c-compiler libprotobuf-c-dev libzmq3-dev \
protobuf-compiler python3-sphinx libnuma-dev \
libxen-dev meson pkg-config build-essential \
devscripts libbsd-dev dpdk dpdk-dev
- name: Install dependencies
if: matrix.release.codename == 'focal'
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get update
apt-get install -y \
git wget gcc make debhelper python3-minimal \
protobuf-c-compiler libprotobuf-c-dev libzmq3-dev \
protobuf-compiler python3-sphinx libnuma-dev \
libxen-dev meson pkg-config build-essential \
devscripts libbsd-dev dpdk dpdk-dev
- name: Checkout out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add repo to git safe directory list
run: git config --global --add safe.directory `pwd`
- name: Build virtio-forwarder
run:
meson build && ninja -C build