Skip to content

Commit 6745503

Browse files
committed
ci - build clickhouse output plugin rpm
1 parent daa7a01 commit 6745503

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/packages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel
149149
yum -y install zlib-devel pkgconfig rpm-build librdkafka-devel
150150
yum -y install python3-docutils || yum -y install python-docutils
151+
yum -y install rpmdevtools
151152
152153
# Checkout repository --------------------------------------------------------------------
153154
- uses: actions/checkout@v2
@@ -179,6 +180,18 @@ jobs:
179180
ipfixcol2 -V
180181
ipfixcol2 -h
181182
ipfixcol2 -L -v
183+
- name: Build IPFIXcol2 ClickHouse Output RPMs
184+
run: |
185+
set -xe
186+
rpmdev-setuptree
187+
cp -r ./extra_plugins/output/clickhouse/ ./ipfixcol2-clickhouse-output-1.0.0/
188+
tar -czvf ~/rpmbuild/SOURCES/ipfixcol2-clickhouse-output-1.0.0.tar.gz ./ipfixcol2-clickhouse-output-1.0.0
189+
cp ./extra_plugins/output/clickhouse/*.spec ~/rpmbuild/SPECS/
190+
sed -i '/Packager:/c\Packager: Github actions <[email protected]>' ~/rpmbuild/SPECS/*.spec
191+
rpmbuild -bs ~/rpmbuild/SPECS/*.spec
192+
rpmbuild -bb ~/rpmbuild/SPECS/*.spec
193+
find ~/rpmbuild -iname '*.rpm' -exec mv {} ./build/ \;
194+
182195
- name: Archive RPM packages
183196
if: github.event_name == 'push'
184197
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)