Some actions do not build with prometheus - adding prometheus tests fails the jobs cmake build tests did not run due to different target folder (while reporting success) - now the bin folder is detected
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: CMake
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
wget \
|
|
libevent-dev \
|
|
libssl-dev \
|
|
libpq-dev libmariadb-dev libsqlite3-dev \
|
|
libhiredis-dev \
|
|
libmongoc-dev \
|
|
libmicrohttpd-dev
|
|
- uses: actions/checkout@v4
|
|
- name: Prometheus support
|
|
run: |
|
|
wget https://github.com/digitalocean/prometheus-client-c/releases/download/v0.1.3/libprom-dev-0.1.3-Linux.deb && \
|
|
sudo apt install ./libprom-dev-0.1.3-Linux.deb && \
|
|
rm ./libprom-dev-0.1.3-Linux.deb
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
- name: apps tests
|
|
run: cd examples && ./run_tests.sh && ./run_tests_conf.sh
|