File: linux.yml

package info (click to toggle)
icinga2 2.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,040 kB
  • sloc: cpp: 97,870; sql: 3,261; cs: 1,636; yacc: 1,584; sh: 1,009; ansic: 890; lex: 420; python: 80; makefile: 62; javascript: 12
file content (83 lines) | stat: -rw-r--r-- 2,221 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
73
74
75
76
77
78
79
80
81
82
83
name: Linux

on:
  push:
    branches:
      - master
      - 'support/*'
  pull_request: {}

concurrency:
  group: linux-${{ github.event_name == 'push' && github.sha || github.ref }}
  cancel-in-progress: true

jobs:
  linux:
    name: ${{ matrix.distro }}${{ matrix.platform != 'linux/amd64' && format(' ({0})', matrix.platform) || '' }}
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      max-parallel: 2
      matrix:
        distro:
          # Alpine Linux to build Icinga 2 with LibreSSL, OpenBSD's default.
          # The "alpine:bash" image will be built below based on "alpine:3".
          - alpine:bash

          - amazonlinux:2
          - amazonlinux:2023

          # Raspberry Pi OS is close enough to Debian to test just one of them.
          # Its architecture is different, though, and covered by the Docker job.
          - debian:11
          - debian:12
          - debian:13

          - fedora:41
          - fedora:42

          - opensuse/leap:15.6

          # We don't actually support Rocky Linux as such!
          # We just use that RHEL clone to test the original.
          - rockylinux:8
          - rockylinux:9
          - rockylinux/rockylinux:10

          - registry.suse.com/suse/sle15:15.6
          - registry.suse.com/suse/sle15:15.7

          - ubuntu:22.04
          - ubuntu:24.04
          - ubuntu:25.04

        platform:
          - linux/amd64

        include:
          - distro: debian:11
            platform: linux/386
          - distro: debian:12
            platform: linux/386

    steps:
      - name: Checkout HEAD
        uses: actions/checkout@v4

      - name: Restore/backup ccache
        uses: actions/cache@v4
        with:
          path: ccache
          key: ccache/${{ matrix.distro }}

      - name: Build Alpine Docker Image
        if: "matrix.distro == 'alpine:bash'"
        run: >-
          docker build --file .github/workflows/alpine-bash.Dockerfile
          --tag alpine:bash `mktemp -d`

      - name: Build Icinga
        run: >-
          docker run --rm -v "$(pwd):/icinga2" -e DISTRO=${{ matrix.distro }}
          --platform ${{ matrix.platform }} ${{ matrix.distro }} /icinga2/.github/workflows/linux.bash