mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-04-11 18:44:25 +02:00
Add cmake build and test workflow.
This commit is contained in:
parent
2d969efdc4
commit
99df070a2b
48
.github/workflows/mosquitto-cmake.yml
vendored
Normal file
48
.github/workflows/mosquitto-cmake.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
name: Mosquitto - CMake
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- fixes
|
||||
pull_request:
|
||||
branches:
|
||||
- develop
|
||||
- fixes
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Install third party dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
docbook-xsl \
|
||||
libc-ares-dev \
|
||||
libcjson-dev \
|
||||
libcjson1 \
|
||||
libcunit1-dev \
|
||||
libssl-dev \
|
||||
libwrap0-dev \
|
||||
microsocks \
|
||||
python-all \
|
||||
python3-all \
|
||||
uthash-dev \
|
||||
xsltproc
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- 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
|
||||
Loading…
Reference in a new issue