File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : upload SRPM to copr
2+
3+ on :
4+ push :
5+ branches :
6+ - release
7+
8+ jobs :
9+ upload-srpm-to-copr :
10+ runs-on : ubuntu-latest
11+ container : oraclelinux:9
12+ steps :
13+ - name : Install git
14+ run : dnf install -y git
15+ - name : Check out repository code
16+ uses : actions/checkout@v4
17+ - name : Install dependencies
18+ uses : ./.github/actions/install-dependencies
19+ with :
20+ pcap : true
21+ dpdk : true
22+ nfb : true
23+ nemea : true
24+ copr : true
25+
26+ - name : Mark github workspace as safe
27+ run : git config --system --add safe.directory $PWD
28+ - name : Create build directory
29+ run : mkdir build
30+ - name : Configure CMake to make rpm
31+ run : |
32+ cd build
33+ cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
34+ make rpm
35+ - name : make rpm-msec
36+ run : make rpm-msec
37+ - name : make rpm-nemea
38+ run : |
39+ cd build
40+ cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON
41+ make rpm-nemea
42+ - name : Create copr config
43+ run : |
44+ mkdir ~/.config
45+ echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr
46+ - name : Upload SRPM to copr
47+ run : |
48+ copr build @CESNET/ipfixprobe build/pkg/rpm/rpmbuild/SRPMS/*
You can’t perform that action at this time.
0 commit comments