Skip to content

Commit 5877a05

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 2c666a4 commit 5877a05

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/copr-upload.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
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/*

0 commit comments

Comments
 (0)