File: build.yml

package info (click to toggle)
elogind 255.17-1debian4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,552 kB
  • sloc: ansic: 162,957; xml: 22,072; python: 1,158; sh: 250; makefile: 174; cpp: 51; awk: 29
file content (51 lines) | stat: -rw-r--r-- 1,981 bytes parent folder | download | duplicates (2)
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
name: Build_on_Ubuntu

on:
  push:
    branches:
      - main
      - v252-stable
      - v255-stable
      - github-actions-test
  pull_request:
    branches:
      - main
      - v252-stable
      - v255-stable
      - github-actions-test

env:
  CC: gcc-11
  CXX: g++-11

defaults:
  run:
    shell: bash

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout library
        uses: actions/checkout@v3
      - name: Add most of systemd build devs
        run: |
             sudo apt-get update
             sudo apt-get install -y acl build-essential debhelper docbook-xml docbook-xsl gettext gnu-efi gperf iproute2 libacl1-dev libapparmor-dev libaudit-dev libblkid-dev libbz2-dev libcap-dev libcap2-bin libcurl4-gnutls-dev libdbus-1-dev libdw-dev libgcrypt20-dev libgnutls28-dev libidn2-dev libiptc-dev liblz4-dev liblz4-tool liblzma-dev libmicrohttpd-dev libmount-dev libpam0g-dev libselinux1-dev libudev-dev libzstd-dev linux-base m4 meson pkg-config python3 python3-evdev python3-lxml python3-pip python3-pyparsing tzdata xsltproc zlib1g-dev zstd
      - name: Update ninja for meson
        run: |
             mkdir -p /tmp/build/bin
             wget -q -O /tmp/build/ninja-linux.zip "https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip"
             unzip -o -d /tmp/build/bin /tmp/build/ninja-linux.zip
             chmod 755 /tmp/build/bin/ninja
             export PATH="/tmp/build/bin:$PATH"
      - name: Update meson via python3-pip
        run: |
             python3 -m pip install --user setuptools
             python3 -m pip install --user --upgrade pip
             python3 -m pip install --user "meson==0.63.3"
      - name: Build elogind
        run: make DEBUG=YES BUILDMODE=release CGDEFAULT=hybrid MESON=$HOME/.local/bin/meson NINJA=/tmp/build/bin/ninja
      - name: Run tests
        run: make test DEBUG=YES BUILDMODE=release CGDEFAULT=hybrid MESON=$HOME/.local/bin/meson NINJA=/tmp/build/bin/ninja