Skip to content

Translations update from Fedora Weblate #482

Translations update from Fedora Weblate

Translations update from Fedora Weblate #482

Workflow file for this run

name: tito
on:
pull_request:
workflow_dispatch:
jobs:
tito:
name: "tito"
strategy:
fail-fast: false
matrix:
include:
- name: "CentOS Stream 9"
image: "quay.io/centos/centos:stream9"
- name: "Fedora latest"
image: "registry.fedoraproject.org/fedora:latest"
- name: "Fedora Rawhide"
image: "registry.fedoraproject.org/fedora:rawhide"
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- name: Install core packages
run: |
dnf --setopt install_weak_deps=False install -y \
git-core dnf-plugins-core rpm-build sudo
- name: Enable CRB repository
if: ${{ matrix.name == 'CentOS Stream 9' }}
run: |
dnf config-manager --enable crb
- name: Checkout repository
uses: actions/checkout@v4
# This step is required so Tito can properly read git history
# See https://github.com/actions/checkout/issues/766
- name: Trust git repository path
run: |
git config --global --add safe.directory '*'
- name: Install packages
run: |
dnf --setopt install_weak_deps=False builddep -y \
-D '%global python3_pkgversion 3' \
subscription-manager.spec
- name: Install tito (using DNF)
if: ${{ startsWith(matrix.name, 'Fedora') }}
run: |
dnf --setopt install_weak_deps=False install -y \
tito
- name: Install tito (using pip)
if: ${{ startsWith(matrix.name, 'CentOS') }}
run: |
dnf --setopt install_weak_deps=False install -y \
python3-pip python3-setuptools
pip install https://github.com/rpm-software-management/tito/archive/refs/tags/tito-0.6.22-1.tar.gz
- name: Build the package
run: |
tito build --output=tito/ --test --rpm
- name: Upload RPMs
uses: actions/upload-artifact@v4
with:
name: RPMs from tito (${{ matrix.name }})
path: tito/
retention-days: 7