Modify CI job to matrix build across RH 8-10, on github actions #19
Workflow file for this run
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: 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 |