Skip to content

Commit

Permalink
Add CentOS Stream static builds in review checks
Browse files Browse the repository at this point in the history
Added static build review checks for CentOS Stream versions 8 and 9.
Note that the checks are added in the static-build-centos-stream jobs to
deal with the fact that the container images for these are not available
in the GitHub Action's default registry and they are pulled from Quay.io
registry instead.
  • Loading branch information
danrodrig committed Jan 18, 2024
1 parent 160ef73 commit dcdb1e5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/review-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,39 @@ jobs:
run: |
tito build --rpm --test
static-build-centos-stream:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["8", "9"]
container:
image: quay.io/centos/centos:stream${{ matrix.version }}
options: --security-opt seccomp=unconfined

steps:
- name: Enable EPEL
run: |
yum install -y epel-release
- uses: actions/checkout@v3
- name: Install deps
run: |
yum install -y dnf 'dnf-command(builddep)' tito
- name: Enable PowerTools
run: |
yum config-manager --set-enabled powertools
if: contains(matrix.version, '8')
- name: Enable CRB
run: |
yum config-manager --set-enabled crb
if: contains(matrix.version, '9')
- name: Install restraint deps for static build
run: |
dnf builddep -y --spec restraint.spec
- name: Mark git directories safe
run: |
git config --global --add safe.directory '*'
- name: Tito Build
run: |
tito build --rpm --test

0 comments on commit dcdb1e5

Please sign in to comment.