mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-14 15:36:52 +02:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
name: Mosquitto - CMake
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
- fixes
|
|
- develop
|
|
- release/*
|
|
tags:
|
|
- 'v[0-9]+.*'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- fixes
|
|
- develop
|
|
- release/*
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install third party dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
docbook-xsl \
|
|
lcov \
|
|
libargon2-dev \
|
|
libc-ares-dev \
|
|
libcjson-dev \
|
|
libcjson1 \
|
|
libcunit1-dev \
|
|
libedit-dev \
|
|
libgmock-dev \
|
|
libmicrohttpd-dev \
|
|
libssl-dev \
|
|
libwrap0-dev \
|
|
microsocks \
|
|
python3-all \
|
|
python3-paho-mqtt \
|
|
python3-psutil \
|
|
uthash-dev \
|
|
xsltproc
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
- run: cmake -E make_directory build
|
|
|
|
- run: |
|
|
cmake \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-S . \
|
|
-B build
|
|
|
|
- run: cmake --build build --parallel $(nproc)
|
|
|
|
- working-directory: build/
|
|
run: ctest --output-on-failure --repeat until-pass:5
|