Closer integration with Conan and vcpkg (#279)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-12-01 14:01:17 +01:00
committed by GitHub
parent 31534ae986
commit 967cda42af
11 changed files with 241 additions and 18 deletions
+7
View File
@@ -47,6 +47,13 @@ jobs:
run: |
sudo apt update
sudo apt install -y ninja-build ${{ matrix.additional-dep }}
- name: Install Conan
run: |
sudo apt install -y pipx
pipx install conan
conan profile detect
- name: Make sure the library compiles with Conan
run: conan build . --build=missing -s compiler.cppstd=gnu20 -o *:with_cbor=True -o *:with_flatbuffers=True -o *:with_msgpack=True -o *:with_toml=True -o *:with_ubjson=True -o *:with_xml=True -o *:with_yaml=True
- name: Compile
run: |
if [[ "${{ matrix.compiler }}" == "llvm" ]]; then
+10
View File
@@ -32,9 +32,19 @@ jobs:
create-symlink: true
- name: Run vcpkg
uses: lukka/run-vcpkg@v11
- name: Install Conan
run: |
brew install pipx
pipx install conan
conan profile detect
- name: Install ninja
run: brew install ninja
if: matrix.os == 'macos-latest'
- name: Make sure the library compiles with Conan
env:
CC: clang
CXX: clang++
run: conan build . --build=missing -s compiler.cppstd=gnu20 -o *:with_cbor=True -o *:with_flatbuffers=True -o *:with_msgpack=True -o *:with_toml=True -o *:with_ubjson=True -o *:with_xml=True -o *:with_yaml=True
- name: Compile
env:
CC: clang
+3
View File
@@ -6,6 +6,8 @@ env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
windows-msvc-conan:
runs-on: windows-latest
windows-msvc:
runs-on: windows-latest
steps:
@@ -47,3 +49,4 @@ jobs:
.\build\benchmarks\json\Release\reflect-cpp-json-benchmarks.exe --benchmark_filter=canada >> $env:GITHUB_STEP_SUMMARY
.\build\benchmarks\json\Release\reflect-cpp-json-benchmarks.exe --benchmark_filter=licenses >> $env:GITHUB_STEP_SUMMARY
echo '```' >> $env:GITHUB_STEP_SUMMARY