-
Notifications
You must be signed in to change notification settings - Fork 17
104 lines (101 loc) · 2.82 KB
/
package.yaml
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
name: Packages
on:
push:
branches: ["*", "deb-package"]
jobs:
build-ubuntu-22-04:
name: build (Ubuntu 22.04)
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- run: |
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
meson \
ninja-build \
pkg-config \
git \
libnuma-dev \
libibverbs-dev \
libpcap-dev \
libsystemd-dev \
libyaml-cpp-dev \
libgtest-dev \
flex \
libfl-dev \
netbase \
devscripts \
debhelper \
dupload \
python3-pyelftools \
python3-pip \
protobuf-compiler \
libprotobuf-dev \
bison \
debhelper-compat
gcc --version
export YANET_VERSION=v0.1
export YANET_VERSION=${YANET_VERSION#v}
export YANET_VERSION_MAJOR=${YANET_VERSION%.*}
export YANET_VERSION_MINOR=${YANET_VERSION#*.}
export YANET_VERSION_REVISION=${{github.run_number}}
export YANET_VERSION_HASH=${{github.sha}}
export YANET_VERSION_CUSTOM=stable
dpkg-buildpackage -b
- uses: actions/upload-artifact@v3
with:
name: target_debian-22.04
path: /__w/yanet/yanet*.deb
build-ubuntu-18-04:
name: build (Ubuntu 18.04)
runs-on: ubuntu-latest
container:
image: ubuntu:18.04
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- run: |
apt-get update
apt-get install -y --no-install-recommends \
build-essential \
ninja-build \
pkg-config \
git \
libnuma-dev \
libibverbs-dev \
libpcap-dev \
libsystemd-dev \
libyaml-cpp-dev \
libgtest-dev \
flex \
libfl-dev \
netbase \
devscripts \
debhelper \
dupload \
python3-pyelftools \
python3-pip \
protobuf-compiler \
libprotobuf-dev \
bison \
debhelper-compat
python3 -m pip install meson
gcc --version
export YANET_VERSION=v0.1
export YANET_VERSION=${YANET_VERSION#v}
export YANET_VERSION_MAJOR=${YANET_VERSION%.*}
export YANET_VERSION_MINOR=${YANET_VERSION#*.}
export YANET_VERSION_REVISION=${{github.run_number}}
export YANET_VERSION_HASH=${{github.sha}}
export YANET_VERSION_CUSTOM=stable
dpkg-buildpackage -b
- uses: actions/upload-artifact@v3
with:
name: target_debian-18.04
path: /__w/yanet/yanet*.deb