Skip to content

Commit

Permalink
GHA: also build with LibreSSL which is used on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Dec 20, 2023
1 parent 2d167cc commit b20e8e3
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/libressl.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
set -exo pipefail

export PATH="/usr/lib/ccache:$PATH"
export CCACHE_DIR="$(pwd)/ccache"
export CTEST_OUTPUT_ON_FAILURE=1

apt-get update

DEBIAN_FRONTEND=noninteractive apt-get install --no-install-{recommends,suggests} -y \
bison ccache cmake flex g++ lib{boost-all,ssl}-dev ninja-build tzdata

mkdir build
cd build

cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DICINGA2_UNITY_BUILD=ON \
-DUSE_SYSTEMD=OFF \
-DICINGA2_WITH_{MYSQL,PGSQL,COMPAT,LIVESTATUS,PERFDATA,ICINGADB}=OFF \
-DICINGA2_USER=$(id -un) \
-DICINGA2_GROUP=$(id -gn) \
..

ninja
ninja test
ninja install

icinga2 daemon -C
30 changes: 30 additions & 0 deletions .github/workflows/libressl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: LibreSSL

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

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

jobs:
libressl:
name: LibreSSL
runs-on: ubuntu-22.04

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

- name: Restore/backup ccache
uses: actions/cache@v3
with:
path: ccache
key: ccache/libressl

- name: Build
run: .github/workflows/libressl.bash

0 comments on commit b20e8e3

Please sign in to comment.