File: build-test.yml

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (43 lines) | stat: -rw-r--r-- 1,124 bytes parent folder | download
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 }}