CI: Update rpmbuild to latest Fedora/EPEL spec #1053
This file contains hidden or 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
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:rawhide | |
- fedora:latest | |
- almalinux:10-kitten | |
- almalinux:10 | |
- almalinux:9 | |
container: | |
image: ${{ matrix.container }} | |
steps: | |
- name: Runner setup | |
run: | | |
cat /etc/os-release | |
dnf -y install gzip sudo rpmdevtools | |
- uses: actions/checkout@v4 | |
- name: Build & Test | |
run: | | |
dnf -y install epel-release || true | |
crb enable || true # Meson/CMocka on EL10 | |
dnf -y builddep rpm/netplan.spec | |
adduser test | |
chown -R test:test . | |
sudo -u test rpmbuild -bi -D "debug_package %{nil}" --build-in-place rpm/netplan.spec |