Skip to content

Commit

Permalink
ci: fix CMake and add a simple build test
Browse files Browse the repository at this point in the history
We continue to support only meson. However, there seem to be enough
unfortunate users who are dependent on CMake. To avoid simple
regressions like forgetting cpp files for them in the future, we are now
adding a simple build test for CMake to the CI pipeline.

ATTENTION: If there are serious obstacles to using CMake in the future
we will revert this.

Signed-off-by: Patrick Bruenn <[email protected]>
  • Loading branch information
pbruenn committed Dec 13, 2024
1 parent 6efd256 commit ca7602b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ build-alpine:
before_script:
- apk add g++ meson

build-cmake:
stage: build
tags:
- docker
before_script:
- apt-get update && apt-get --assume-yes install cmake
script:
- cmake -S . -B build
- cmake --build build
artifacts:
when: always
paths:
- AdsLib/**/*.h
- build/

build-linux-clang:
extends: .build-meson-docker
variables:
Expand Down
6 changes: 3 additions & 3 deletions AdsLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ set(SOURCES
Frame.cpp
LicenseAccess.cpp
Log.cpp
RouterAccess.cpp
MasterDcStatAccess.cpp
RTimeAccess.cpp
Sockets.cpp

RegistryAccess.cpp
RouterAccess.cpp
Sockets.cpp
SymbolAccess.cpp

bhf/ParameterList.cpp
Expand Down

0 comments on commit ca7602b

Please sign in to comment.