Add support for CentOS Stream containers #548
Workflow file for this run
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
name: Review-checks | |
on: [pull_request] | |
jobs: | |
unit-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["38", "39", "rawhide"] | |
runs-on: ubuntu-latest | |
container: | |
image: registry.fedoraproject.org/fedora:${{ matrix.version }} | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install deps | |
run: | | |
dnf install -y 'dnf-command(builddep)' git-daemon python3-flask python3-requests python3-pytest python3-six procps-ng | |
- name: Install restraint deps | |
run: | | |
dnf builddep --spec specfiles/restraint-upstream.spec -y | |
- name: Run tests | |
run: | | |
set -o pipefail | |
make check | tee unittests.out | |
mv unittests.out /__w/unittests.out | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: unittests.out | |
path: /home/runner/work/unittests.out | |
valgrind: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["38", "39", "rawhide"] | |
runs-on: ubuntu-latest | |
container: | |
image: registry.fedoraproject.org/fedora:${{ matrix.version }} | |
options: --security-opt seccomp=unconfined | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install deps | |
run: | | |
dnf install -y 'dnf-command(builddep)' valgrind git-daemon procps-ng | |
- name: Install restraint deps | |
run: | | |
dnf builddep --spec specfiles/restraint-upstream.spec -y | |
- name: Run valgrind | |
run: | | |
set -o pipefail | |
make valgrind 2>&1 | tee valgrind.out | |
mv valgrind.out /__w/valgrind.out | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: valgrind.out | |
path: /home/runner/work/valgrind.out | |
static-build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
container: ["fedora:38", "fedora:39", "fedora:rawhide", "centos:7"] | |
container: | |
image: ${{ matrix.container }} | |
options: --security-opt seccomp=unconfined | |
steps: | |
- name: Enable EPEL | |
run: | | |
yum install -y epel-release | |
if: contains(matrix.container, 'centos') | |
- name: Install Git client (Fedora) | |
run: | | |
dnf install -y git | |
if: contains(matrix.container, 'fedora') | |
- name: Install Git client (CentOS) | |
run: | | |
yum install -y https://repo.ius.io/ius-release-el7.rpm | |
yum install -y git236-core | |
if: contains(matrix.container, 'centos:7') | |
- 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.container, 'centos:8') | |
- 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 | |