ci: GitHub workflows updated for Conan 2.0

This commit is contained in:
Mateusz Pusz committed 2023-02-24 09:36:27 +01:00
1 parent d46377ee16
commit 1899f7803f
4 files changed
+36 -43

No files matched your search

+7 -7
View File
@@ -52,7 +52,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v3
- name: Cache Conan data
@@ -60,7 +60,7 @@ jobs:
env:
cache-name: cache-conan-data
with:
path: ~/.conan/data
path: ~/.conan2/data
key: build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-$STDLIB
restore-keys: |
build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-
@@ -82,17 +82,17 @@ jobs:
pip install -U conan
- name: Configure Conan
run: |
conan config init
conan remote add -i 0 upload https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
conan profile detect --force
conan remote add artifactory https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
- name: Install Conan dependencies
run: |
conan install . -s compiler.cppstd=20 -s compiler.libcxx=$STDLIB -c user.build:all=True -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" -b outdated -u
conan install . -s compiler.cppstd=20 -s compiler.libcxx=$STDLIB -c user.build:all=True -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" -b missing
- name: Configure CMake
run: |
cmake --preset default
cmake --preset conan-default
- name: Generate documentation
run: |
cmake --build --preset release --target documentation
cmake --build --preset conan-release --target documentation
- name: Deploy documentation
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3