-
Notifications
You must be signed in to change notification settings - Fork 201
37 lines (35 loc) · 979 Bytes
/
rpmbuild.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
name: RPM build
on:
push:
branches: [ main, 'stable/**' ]
paths-ignore:
- 'doc/**'
pull_request:
branches: [ '**' ]
paths-ignore:
- 'doc/**'
jobs:
rpm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- fedora:latest
# - fedora:rawhide
- rockylinux:9
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v2
- name: Build & Test
run: |
cat /etc/os-release
dnf -y install dnf-plugins-core rpmdevtools # for 'dnf builddep'
dnf -y install epel-release || true
dnf config-manager --set-enabled crb || true # Meson/CMocka on EL9
dnf -y install centos-release-nfv-openvswitch || true # OVS on EL9
dnf -y builddep rpm/netplan.spec
adduser test
chown -R test:test .
su test -c 'rpmbuild -bi --build-in-place rpm/netplan.spec'