Skip to content

Commit b21eed5

Browse files
Added conan to all pipelines
1 parent 411899d commit b21eed5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/macos-clang.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@ jobs:
3232
create-symlink: true
3333
- name: Run vcpkg
3434
uses: lukka/run-vcpkg@v11
35+
- name: Install Conan
36+
id: conan
37+
uses: turtlebrowser/get-conan@main
38+
- name: Create default profile
39+
run: conan profile detect
3540
- name: Install ninja
3641
run: brew install ninja
3742
if: matrix.os == 'macos-latest'
43+
- name: Make sure the library compiles with Conan
44+
env:
45+
CC: clang
46+
CXX: clang++
47+
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
3848
- name: Compile
3949
env:
4050
CC: clang

.github/workflows/windows-msvc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
2323
- uses: ilammy/msvc-dev-cmd@v1
2424
- uses: lukka/run-vcpkg@v11
25+
- name: Install Conan
26+
id: conan
27+
uses: turtlebrowser/get-conan@main
28+
- name: Create default profile
29+
run: conan profile detect
30+
- name: Make sure the library compiles with Conan
31+
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
2532
- name: Compile
2633
run: |
2734
cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BUILD_BENCHMARKS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release

0 commit comments

Comments
 (0)