1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
name: Build Test
on: [push, pull_request]
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- distro: debian
backend: apt
- distro: fedora
backend: dnf
- distro: fedora
backend: dnf5
- distro: fedora
backend: alpm
- distro: fedora
backend: zypp
- distro: solus
backend: eopkg
fail-fast: false
steps:
- name: Get this version
uses: actions/checkout@v6
- name: Get version from last ABI break
uses: actions/checkout@v6
with:
ref: ${{ env.LAST_ABI_BREAK }}
path: original-version
if: ${{ matrix.distro == 'debian' }}
- name: Create Build Environment
run: podman build -t packagekit-${{ matrix.distro }} -f tests/ci/Dockerfile-${{ matrix.distro }} .
- name: Build & Test
run: podman run -t -v `pwd`:/build packagekit-${{ matrix.distro }}
./tests/ci/build-and-test.sh -Dpackaging_backend=${{ matrix.backend }}
|