Skip to content

Commit

Permalink
create ci job for rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Mar 18, 2022
1 parent 6e28baf commit 6430ac7
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,60 @@ jobs:
name: Manpages
path: ${{env.RouterBuildDir}}/docs/man/*.html

rpm:
name: 'Build and test RPM (${{ matrix.container }}:${{ matrix.containerTag }})'
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os: [ 'ubuntu-20.04' ]
container: [ 'centos' ]
containerTag: [ 'stream8' ]

container:
image: 'quay.io/${{ matrix.container }}/${{ matrix.container }}:${{ matrix.containerTag }}'
volumes:
- ${{github.workspace}}:${{github.workspace}}

env:
DNF: ${{github.workspace}}/build

steps:
- name: Install build dependencies (1/2)
run: |
dnf config-manager --set-enabled powertools
dnf install --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y epel-release 'dnf-command(copr)' 'dnf-command(builddep)'
dnf copr enable -y clime/rpkg-util
dnf install --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y git rpkg
- uses: actions/checkout@v2

- name: Install build dependencies (2/2)
run: |
dnf install --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y gcc gcc-c++
rpkg spec --outdir /tmp/rpkg
dnf builddep --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y /tmp/rpkg/skupper-router.spec
- name: Build packages
run: |
mkdir /tmp/skupper-rpms
rpkg local --nocheck --outdir /tmp/skupper-rpms
- name: Install built packages
run: |
dnf install -y /tmp/skupper-rpms/*/*.rpm
- name: Check that skrouterd works
run: |
skrouterd -c /dev/empty |& grep "Configuration file could not be opened"
- name: Check that manpages work
run: |
dnf install -y man
man skrouterd
man skstat
man skmanage
rat_check:
name: RAT Check
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6430ac7

Please sign in to comment.