Skip to content

Commit 7e30422

Browse files
author
Pavel Siska
committed
Github-actions: add copr-upload workflow
Upload srpm files to copr (NEMEA-testing) on push to branch release.
1 parent f90d97e commit 7e30422

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/copr-upload.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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/NEMEA-testing build/pkg/rpm/rpmbuild/SRPMS/* --with input_pcap --with input_dpdk --with input_nfb --with process_experimental --with output_unirec

0 commit comments

Comments
 (0)