@@ -19,15 +19,21 @@ jobs:
1919 - name : Install conan and lcov
2020 run : |
2121 sudo apt-get install -yq --no-install-recommends lcov
22- sudo pip install conan==1.66.0 coverage
22+ sudo pip install -U conan coverage
2323 - name : Setup Conan Profile
2424 run : |
25- conan profile new default --detect
26- conan profile update settings.build_type=Debug default
27- #Note no backwards compatiblity for gcc5 needed, setting libcxx to c++11.
28- conan profile update settings.compiler.libcxx=libstdc++11 default
29- echo "[tool_requires]" >> `conan config home`/profiles/default
30- echo "cmake/3.26.4" >> `conan config home`/profiles/default
25+ # build profile
26+ conan profile detect -f --name release
27+ sed -i 's/compiler.cppstd=gnu14/compiler.cppstd=gnu17/g' `conan profile path release`
28+ echo "[tool_requires]" >> `conan profile path release`
29+ echo "cmake/3.26.4" >> `conan profile path release`
30+
31+ # host profile
32+ conan profile detect -f
33+ sed -i 's/build_type=Release/build_type=Debug/g' `conan profile path default`
34+ sed -i 's/compiler.cppstd=gnu14/compiler.cppstd=gnu17/g' `conan profile path default`
35+ echo "[tool_requires]" >> `conan profile path default`
36+ echo "cmake/3.26.4" >> `conan profile path default`
3137 - name : Conan Cache
3238 id : cache-conan
3339 uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
@@ -48,19 +54,16 @@ jobs:
4854 key : ${{ runner.os }}-gcov-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
4955 restore-keys : |
5056 ${{ runner.os }}-gcov-ccache-
51- - name : Install Dependencies
57+ - name : Install Dependencies and Build
5258 env :
5359 CONAN_BUILD_OPTIONS : |
54- -o celix:enable_testing=True
55- -o celix:build_all=True
56- -o celix:enable_code_coverage=True
57- -o celix:enable_testing_on_ci=True
58- -o celix:enable_ccache=True
60+ -o celix/* :enable_testing=True
61+ -o celix/* :build_all=True
62+ -o celix/* :enable_code_coverage=True
63+ -o celix/* :enable_testing_on_ci=True
64+ -o celix/* :enable_ccache=True
5965 run : |
60- conan install . celix/ci -pr:b default -pr:h default -if build ${CONAN_BUILD_OPTIONS} -b missing --require-override=openssl/1.1.1s
61- - name : Build
62- run : |
63- conan build . -bf build
66+ conan build . -pr:b release -pr:h default -of build ${CONAN_BUILD_OPTIONS} -b missing --require-override=openssl/1.1.1s
6467 - name : Test with coverage
6568 run : |
6669 cd build
0 commit comments