File: ci.yml

package info (click to toggle)
policykit-1 127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,684 kB
  • sloc: ansic: 20,535; xml: 3,715; sh: 577; python: 135; javascript: 83; exp: 79; makefile: 49; perl: 11
file content (72 lines) | stat: -rw-r--r-- 2,258 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
# vi: ts=2 sw=2 et:

name: Build & test
on:
  pull_request:
    branches:
      - main
  push:
    branches:
      - main

permissions:
  contents: read

jobs:
  # glibc + systemd-logind
  fedora:
    runs-on: ubuntu-latest
    container:
      image: registry.fedoraproject.org/fedora:latest
      options: "--privileged"
    concurrency:
      group: fedora-${{ github.workflow }}-${{ github.ref }}-${{ matrix.phase }}
      cancel-in-progress: true
    strategy:
      fail-fast: false
      matrix:
        phase: [BUILD_GCC, GCC, GCC_ASAN_UBSAN, BUILD_CLANG, CLANG]
    steps:
      - name: Repository checkout
        uses: actions/checkout@v6

      - name: Install build & test dependencies
        run: |
          dnf install -y dnf-plugins-core python3-dbusmock clang compiler-rt libasan libubsan
          dnf builddep -y polkit

      - name: Build & test
        run: .github/workflows/ci.sh ${{ matrix.phase }} logind

  # musl + elogind
  alpine:
    runs-on: ubuntu-latest
    container:
      image: alpine:latest
      options: "--privileged"
    concurrency:
      group: alpine-${{ github.workflow }}-${{ github.ref }}-${{ matrix.phase }}
      cancel-in-progress: true
    strategy:
      fail-fast: false
      matrix:
        # There's no libasan/libubsan on Alpine, hence the missing GCC_ASAN_UBSAN phase
        # See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/10304
        # Future FIXME: add clang + sanitizers to both jobs
        phase: [BUILD_GCC, GCC, BUILD_CLANG, CLANG]
    steps:
      - name: Repository checkout
        uses: actions/checkout@v6

      - name: Install build & test dependencies
        run: |
          apk update
          apk add bash gcc g++ clang meson ninja-build pkgconf glib-dev duktape-dev elogind-dev dbus-dev \
                  expat-dev linux-pam-dev gobject-introspection-dev perl py3-dbusmock gtk-doc
          # Alpine's elogind package creates compatibility symlinks to act as a drop-in replacement for
          # systemd/systemd-logind. Remove them to test build with _pure_ elogind installation
          rm -f /usr/include/systemd /usr/lib/pkgconfig/libsystemd{,-logind}.pc

      - name: Build & test
        run: .github/workflows/ci.sh ${{ matrix.phase }} elogind