Skip to content

Modify CI job to matrix build across RH 8-10, on github actions #19

Modify CI job to matrix build across RH 8-10, on github actions

Modify CI job to matrix build across RH 8-10, on github actions #19

Workflow file for this run

---
name: Build Self as RPM
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-rpm:
name: EL${{ matrix.el_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
el_version: [8, 9, 10]
container:
image: almalinux:${{ matrix.el_version }}
steps:
- name: Install dependencies
run: |
dnf -y install rpmdevtools git
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Add current dir to git safe directory
run: git config --global --add safe.directory $PWD
- name: Build RPMs
run: ./scripts/git-rpm-tools