-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow that uses the Conan package manager (#997)
- Loading branch information
Showing
11 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Native build with conan | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
merge_group: | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform-agnostic and should work equally | ||
# well on Windows or Mac. You can convert this to a matrix build if you need | ||
# cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
warnings: [ "-Wall -Wextra -Werror " ] | ||
build-type: [Release] | ||
runs-on: ubuntu-22.04 | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo gem install apt-spy2 && sudo apt-spy2 fix --commit --launchpad --country=US | ||
sudo apt-get update | ||
sudo apt-get install build-essential | ||
- name: Python dependencies | ||
run: sudo apt-get install python3-yaml unzip pkg-config python3-icu | ||
- name: Create build directory | ||
run: mkdir ${{github.workspace}}/build | ||
- name: Install and run conan | ||
working-directory: ${{github.workspace}}/build | ||
run: > | ||
sudo pip3 install conan; | ||
conan profile detect; | ||
conan install .. -pr:b=default -of=. ; | ||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.build-type}} -DLOGLEVEL=DEBUG -DCMAKE_TOOLCHAIN_FILE="$(pwd)/build/conan_toolchain.cmake" -DADDITIONAL_COMPILER_FLAGS="${{env.warnings}}" -DUSE_PARALLEL=true -DRUN_EXPENSIVE_TESTS=false -DENABLE_EXPENSIVE_CHECKS=true | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}} -- -j $(nproc) | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build/test | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: > | ||
source ../conanrun.sh; | ||
env CTEST_OUTPUT_ON_FAILURE=1 ctest -C ${{matrix.build-type}} .; | ||
- name: Running and printing the benchmark examples. | ||
working-directory: ${{github.workspace}}/build | ||
run: > | ||
source ./conanrun.sh; | ||
benchmark/BenchmarkExamples -p; | ||
- name: E2E | ||
run: > | ||
source ${{github.workspace}}/build/conanrun.sh; | ||
${{github.workspace}}/e2e/e2e.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
[requires] | ||
boost/1.81.0 | ||
icu/73.1 | ||
openssl/3.1.1 | ||
zstd/1.5.5 | ||
# The jemalloc recipe for Conan2 is currently broken, uncomment this line as soon as this is fixed. | ||
#jemalloc/5.3.0 | ||
|
||
|
||
[generators] | ||
CMakeDeps | ||
CMakeToolchain | ||
CMakeToolchain | ||
VirtualRunEnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[requires] | ||
boost/1.81.0 | ||
|
||
[generators] | ||
CMakeDeps | ||
CMakeToolchain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
add_library(parserData Iri.cpp BlankNode.cpp) | ||
qlever_target_link_libraries(parserData) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
add_subdirectory(HttpParser) | ||
add_library(mediaTypes MediaTypes.h MediaTypes.cpp) | ||
target_compile_options(mediaTypes PUBLIC -Wno-attributes) | ||
qlever_target_link_libraries(mediaTypes util ${ICU_LIBRARIES}) | ||
qlever_target_link_libraries(mediaTypes util) | ||
add_library(http HttpServer.h HttpClient.h HttpClient.cpp HttpUtils.h HttpUtils.cpp UrlParser.h UrlParser.cpp "HttpParser/AcceptHeaderQleverVisitor.h") | ||
|
||
qlever_target_link_libraries(http mediaTypes httpParser ${ICU_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto) | ||
qlever_target_link_libraries(http mediaTypes httpParser OpenSSL::SSL OpenSSL::Crypto) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters