mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Closer integration with Conan and vcpkg (#279)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user