-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpm: add additional test depends
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: RPM build | ||
|
||
on: | ||
push: | ||
branches: [ main, 'stable/**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters