File tree 2 files changed +38
-1
lines changed
2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 27
27
ci : findossl
28
28
- name : PandocMan.cmake
29
29
ci : pandocman
30
+ - name : FindBotan.cmake
31
+ ci : findbotan
30
32
fail-fast : false
31
- name : CMake modules check
33
+ name : Check CMake module
32
34
steps :
33
35
- run : |
34
36
dnf -y install git
80
82
man ./testpandoc.1
81
83
man testpandoc
82
84
popd
85
+ - name : Check FindBotan.cmake
86
+ if : matrix.module.name == 'FindBotan.cmake'
87
+ run : |
88
+ set -eux
89
+ sudo dnf -y -q install python3-devel
90
+ git clone --depth 1 --branch 2.19.3 https://github.com/randombit/botan.git
91
+ pushd botan
92
+ python3 configure.py && make -j2 && make -j2 install
93
+ popd
94
+ mkdir "${GITHUB_WORKSPACE}/build"
95
+ pushd "${GITHUB_WORKSPACE}/build"
96
+ cmake "${GITHUB_WORKSPACE}/ci/findbotan" "-DCMAKE_MODULE_PATH=${GITHUB_WORKSPACE}"
97
+ grep -q "/usr/local/lib/libbotan-2.so" "${GITHUB_WORKSPACE}/ci/findbotan/findbotan.txt"
98
+ grep -q "/usr/local/include/botan-2" "${GITHUB_WORKSPACE}/ci/findbotan/findbotan.txt"
99
+ popd
100
+
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.14)
2
+
3
+ project (test -findbotan
4
+ LANGUAGES C
5
+ )
6
+
7
+ include (FindBotan)
8
+ find_package (Botan 2.0 REQUIRED)
9
+
10
+ file (WRITE findbotan.txt "BOTAN_LIBRARY: ${BOTAN_LIBRARY} \n " )
11
+ file (APPEND findbotan.txt "BOTAN_INCLUDE_DIR: ${BOTAN_INCLUDE_DIR} \n " )
12
+
13
+ if (NOT DEFINED BOTAN_LIBRARY OR "${BOTAN_LIBRARY} " STREQUAL "" )
14
+ message (FATAL_ERROR "BOTAN_LIBRARY is not set." )
15
+ endif ()
16
+
17
+ if (NOT DEFINED BOTAN_INCLUDE_DIR OR "${BOTAN_INCLUDE_DIR} " STREQUAL "" )
18
+ message (FATAL_ERROR "BOTAN_INCLUDE_DIR is not set." )
19
+ endif ()
You can’t perform that action at this time.
0 commit comments