File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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,21 @@ jobs:
179180 ipfixcol2 -V
180181 ipfixcol2 -h
181182 ipfixcol2 -L -v
183+ - name : Build IPFIXcol2 ClickHouse Output RPMs
184+ run : |
185+ if [ ! -d ./extra_plugins/output/clickhouse/ ]; then
186+ echo "ClickHouse plugin not found"
187+ exit 0
188+ fi
189+ rpmdev-setuptree
190+ cp -r ./extra_plugins/output/clickhouse/ ./ipfixcol2-clickhouse-output-1.0.0/
191+ tar -czvf ~/rpmbuild/SOURCES/ipfixcol2-clickhouse-output-1.0.0.tar.gz ./ipfixcol2-clickhouse-output-1.0.0
192+ cp ./extra_plugins/output/clickhouse/*.spec ~/rpmbuild/SPECS/
193+ sed -i '/Packager:/c\Packager: Github actions <[email protected] >' ~/rpmbuild/SPECS/*.spec 194+ rpmbuild -bs ~/rpmbuild/SPECS/*.spec
195+ rpmbuild -bb ~/rpmbuild/SPECS/*.spec
196+ find ~/rpmbuild -iname '*.rpm' -exec mv {} ./build/ \;
197+
182198 - name : Archive RPM packages
183199 if : github.event_name == 'push'
184200 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments