File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-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 : ${{ inputs.os }}
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+
25+ - name : Mark github workspace as safe
26+ run : git config --system --add safe.directory $PWD
27+ - name : Create build directory
28+ run : mkdir build
29+ - name : Configure CMake to make rpm
30+ run : |
31+ cd build
32+ cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
33+ make rpm
34+ - name : make rpm-msec
35+ run : make rpm-msec
36+ - name : make rpm-nemea
37+ run : |
38+ cd build
39+ cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON
40+ make rpm-nemea
41+ - name : Create copr config
42+ run : |
43+ mkdir ~/.config
44+ echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr
45+ - name : Upload SRPM to copr
46+ run : |
47+ copr build @CESNET/NEMEA-testing build/pkg/rpm/rpmbuild/SRPMS/*
You can’t perform that action at this time.
0 commit comments