Skip to content

Commit

Permalink
Build the library with cmake as a test
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Jun 14, 2024
1 parent 17753e0 commit 3e28b51
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
version: 2
jobs:
fedora40:
fedora40_cmake:
working_directory: ~/libreadtags
docker:
- image: docker.io/fedora:40
steps:
- run:
name: Install Git
command: |
yum -y install git
- checkout
- run:
name: Install build tools
command: |
yum -y install gcc cmake
- run:
name: Build
command: |
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -DLIBREADTAGS_BUILD_SHARED=ON -S . -B build
cmake --build build --target readtags
- run:
name: Install
command: |
cmake --build build --target install
test -e /usr/local/include/libreadtags.h
test -e /usr/local/lib/libreadtags.so
fedora40_autotools:
working_directory: ~/libreadtags
docker:
- image: docker.io/fedora:40
Expand Down Expand Up @@ -51,5 +77,6 @@ workflows:
version: 2
build_and_test:
jobs:
- fedora40
- fedora40_cmake
- fedora40_autotools
- fedora40_distcheck

0 comments on commit 3e28b51

Please sign in to comment.