forked from cieslarmichal/faker-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Conan build support (cieslarmichal#597)
* Add Conan build support Signed-off-by: Uilian Ries <[email protected]> * Define GCC-13 as default Signed-off-by: Uilian Ries <[email protected]> * Conan build missing Signed-off-by: Uilian Ries <[email protected]> * Simplify build name Signed-off-by: Uilian Ries <[email protected]> --------- Signed-off-by: Uilian Ries <[email protected]>
- Loading branch information
1 parent
2f81f47
commit a6d4a24
Showing
4 changed files
with
74 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: conan | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
CC: gcc-13 | ||
CXX: g++-13 | ||
|
||
jobs: | ||
conan: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Configure python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install conan and ninja | ||
run: pip install conan ninja | ||
- name: Configure Conan profile | ||
run: | | ||
conan profile detect | ||
- name: Install dependencies | ||
run: conan install conanfile.txt -r conancenter -s compiler.cppstd=20 --build=missing | ||
- name: CMake configure | ||
run: | | ||
cmake -G Ninja \ | ||
-DUSE_SYSTEM_DEPENDENCIES:BOOL=ON \ | ||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
-DCMAKE_CXX_COMPILER=g++-13 \ | ||
-DCMAKE_C_COMPILER=gcc-13 \ | ||
-DBUILD_TESTING:BOOL=ON \ | ||
--preset=conan-release | ||
- name: CMake Build | ||
run: cmake --build --preset=conan-release | ||
- name: Run unit tests | ||
working-directory: ${{github.workspace}}/build/Release/tests | ||
run: ctest --print-output-on-failure |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[requires] | ||
fmt/10.2.1 | ||
|
||
[test_requires] | ||
gtest/1.14.0 | ||
|
||
[generators] | ||
CMakeDeps | ||
CMakeToolchain | ||
|
||
[layout] | ||
cmake_layout |