-
Notifications
You must be signed in to change notification settings - Fork 23
53 lines (51 loc) · 1.36 KB
/
rpm_package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build RPM Package
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:38
steps:
- name: Install git
run: |
dnf install -y git
- uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 0
- name: Workaround for unsafe repo git error
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check CMakeLists version matches tag
run: .packaging/scripts/check-version-tag.sh $GITHUB_REF_NAME
- name: Install rpmbuild dependencies
run: |
dnf install -y \
coreutils \
dnf-utils \
rpm-build \
rpm-devel \
rpmdevtools \
rpmlint
- name: Install gr-dvbs2rx build dependencies
run: |
dnf install -y \
doxygen \
fftw-devel \
g++ \
git \
gmp-devel \
gnuradio-devel \
graphviz \
libsndfile-devel \
pybind11-devel \
spdlog-devel
- name: Build RPM package
run: .packaging/scripts/pkg-rpm.sh
- name: Upload results
uses: actions/upload-artifact@v3
with:
name: RPM Packages
path: ~/rpmbuild/RPMS/**/*.rpm