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