ci: GitHub actions updated with CMake presets usage

This commit is contained in:
Mateusz Pusz
2022-08-02 08:30:14 +02:00
parent 9b1c9f16f1
commit 1c5061338f
2 changed files with 45 additions and 38 deletions
+3 -4
View File
@@ -78,16 +78,15 @@ jobs:
conan remote add -i 0 upload https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
- name: Install Conan dependencies
run: |
mkdir build && cd build
conan install .. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
conan install . -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -c tools.cmake.cmaketoolchain:generator="Ninja Multi-Config" -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
- name: Configure CMake
working-directory: build
run: |
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --preset default
- name: Generate documentation
working-directory: build
run: |
cmake --build . --target documentation --config Release
cmake --build --preset Release --target documentation
- name: Deploy documentation
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3