-
Notifications
You must be signed in to change notification settings - Fork 16
121 lines (90 loc) · 2.64 KB
/
Copy pathbuild.yml
File metadata and controls
121 lines (90 loc) · 2.64 KB
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
name: build
on: push
jobs:
autotools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install build env
run: sudo apt -y install build-essential devscripts equivs bison flex xsltproc docbook-xsl
- name: Prepare Autotools
run: ./autogen.sh
- name: configure
run: ./configure
- name: make dist
run: make dist
- name: Upload tarball
uses: actions/upload-artifact@v2
with:
name: source
path: monitoringplug-*.tar.gz
build-ubuntu:
needs: autotools
runs-on: ubuntu-latest
container: ubuntu:latest
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Download tarball
uses: actions/download-artifact@v1
with:
name: source
- name: Install build env
run: |
apt update;
apt -y install build-essential devscripts equivs check locales-all;
- name: Unpack tarball
run: tar xzf source/monitoringplug-*.tar.gz --strip-components 1
- name: Install build dependencies
run: yes | mk-build-deps --install --remove
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: Update changelog
run: make dch
- name: Build deb
run: make deb
- name: Upload rpm
uses: actions/upload-artifact@v2
with:
name: deb
path: ./*.deb
build-fedora:
needs: autotools
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Download tarball
uses: actions/download-artifact@v1
with:
name: source
- name: Install build env
run: dnf -y install @buildsys-build @c-development dnf-plugins-core check-devel glibc-langpack-en
- name: Unpack tarball
run: tar xzf source/monitoringplug-*.tar.gz --strip-components 1
- name: Install build dependencies
run: dnf -y builddep --spec contrib/monitoringplug.spec
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make rpm
run: make rpm
- name: Upload srpm
uses: actions/upload-artifact@v2
with:
name: srpm
path: package/monitoringplug-*.src.rpm
- name: Upload rpm
uses: actions/upload-artifact@v2
with:
name: rpm
path: package/*/monitoringplug-*.rpm