mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 04:34:43 +02:00
GHA: also build on Alpine to test LibreSSL which is used on OpenBSD
This commit is contained in:
parent
5e902fe4a7
commit
d387f0cd18
2
.github/workflows/alpine-bash.Dockerfile
vendored
Normal file
2
.github/workflows/alpine-bash.Dockerfile
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM alpine:3
|
||||||
|
RUN ["apk", "--no-cache", "add", "bash"]
|
8
.github/workflows/linux.bash
vendored
8
.github/workflows/linux.bash
vendored
@ -1,12 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exo pipefail
|
set -exo pipefail
|
||||||
|
|
||||||
export PATH="/usr/lib/ccache:/usr/lib64/ccache:$PATH"
|
export PATH="/usr/lib/ccache/bin:/usr/lib/ccache:/usr/lib64/ccache:$PATH"
|
||||||
export CCACHE_DIR=/icinga2/ccache
|
export CCACHE_DIR=/icinga2/ccache
|
||||||
export CTEST_OUTPUT_ON_FAILURE=1
|
export CTEST_OUTPUT_ON_FAILURE=1
|
||||||
CMAKE_OPTS=''
|
CMAKE_OPTS=''
|
||||||
|
|
||||||
case "$DISTRO" in
|
case "$DISTRO" in
|
||||||
|
alpine:*)
|
||||||
|
apk add bison {boost,libressl}-dev ccache cmake flex g++ ninja-build tzdata
|
||||||
|
ln -vs /usr/lib/ninja-build/bin/ninja /usr/local/bin/ninja
|
||||||
|
CMAKE_OPTS="-DUSE_SYSTEMD=OFF $(echo -DICINGA2_WITH_{MYSQL,PGSQL,COMPAT,LIVESTATUS,PERFDATA,ICINGADB}=OFF)"
|
||||||
|
;;
|
||||||
|
|
||||||
amazonlinux:2)
|
amazonlinux:2)
|
||||||
amazon-linux-extras install -y epel
|
amazon-linux-extras install -y epel
|
||||||
yum install -y bison ccache cmake3 gcc-c++ flex ninja-build \
|
yum install -y bison ccache cmake3 gcc-c++ flex ninja-build \
|
||||||
|
9
.github/workflows/linux.yml
vendored
9
.github/workflows/linux.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
|||||||
max-parallel: 2
|
max-parallel: 2
|
||||||
matrix:
|
matrix:
|
||||||
distro:
|
distro:
|
||||||
|
- alpine:bash # LibreSSL, used on OpenBSD
|
||||||
- amazonlinux:2
|
- amazonlinux:2
|
||||||
- amazonlinux:2023
|
- amazonlinux:2023
|
||||||
|
|
||||||
@ -68,7 +69,13 @@ jobs:
|
|||||||
path: ccache
|
path: ccache
|
||||||
key: ccache/${{ matrix.distro }}
|
key: ccache/${{ matrix.distro }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build 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: >-
|
run: >-
|
||||||
docker run --rm -v "$(pwd):/icinga2" -e DISTRO=${{ matrix.distro }}
|
docker run --rm -v "$(pwd):/icinga2" -e DISTRO=${{ matrix.distro }}
|
||||||
--platform ${{ matrix.platform }} ${{ matrix.distro }} /icinga2/.github/workflows/linux.bash
|
--platform ${{ matrix.platform }} ${{ matrix.distro }} /icinga2/.github/workflows/linux.bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user