From ae85d62614436b82fbb4c26eb40b0e09740fa8a1 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Mon, 30 Oct 2023 14:53:34 -0400 Subject: [PATCH] [FOLD] --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8703116fb..7db919075 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: clang 16 msvc 14.34 standards: '>=20' + build-type: Debug max-standards: 1 latest-factors: gcc factors: clang # Don't include Asan because `clang/AST/Decl.h` fails @@ -67,7 +68,7 @@ jobs: shell: bash run: | set -xe - + # Determine LLVM configuration type llvm_config_type="${{ matrix.build-type }}" if [ "${{ runner.os }}" == "Windows" ]; then @@ -85,14 +86,14 @@ jobs: llvm_commit_id=29b20829 llvm_archive_filename="$llvm_runner_os-$llvm_config_type-$llvm_commit_id.$llvm_archive_type" llvm_url="https://github.com/cppalliance/mrdocs/releases/download/llvm-package-release/$llvm_archive_filename" - + if ! curl --head --silent --fail "$llvm_url"; then llvm_url="https://mrdox.com/llvm+clang/$llvm_archive_filename" fi # Download LLVM binaries curl -L -o "$llvm_archive_filename" "$llvm_url" - + # Install LLVM to runner.tool_cache/llvm+clang llvm_root="${{runner.tool_cache}}/llvm+clang" llvm_root=$(echo "$llvm_root" | sed 's/\\/\//g') @@ -194,10 +195,10 @@ jobs: gcov_tool="gcov-${{ steps.setup-cpp.outputs.version-major }}" fi lcov -c -q -o "./build/coverage.info" -d "./build" --include "$(pwd)/*" --gcov-tool "$gcov_tool" - + # Upload to codecov bash <(curl -s https://codecov.io/bash) -f "./build/coverage.info" - + # Update summary echo "# Coverage" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY @@ -263,7 +264,7 @@ jobs: chmod 600 /home/runner/.ssh/github_actions ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add /home/runner/.ssh/github_actions - + # Copy files chmod 755 -R $(pwd)/docs/build/site scp -r $(pwd)/docs/build/site/* ubuntu@dev-websites.cpp.al:/var/www/mrdox.com/ @@ -360,7 +361,7 @@ jobs: echo " exclude:" >> $(pwd)/boost/libs/url/mrdocs-single.yml echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdocs-single.yml echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdocs-single.yml - + echo "verbose: true" > $(pwd)/boost/libs/url/mrdocs-multi.yml echo "source-root: ." >> $(pwd)/boost/libs/url/mrdocs-multi.yml echo "multipage: true" >> $(pwd)/boost/libs/url/mrdocs-multi.yml @@ -370,7 +371,7 @@ jobs: echo " exclude:" >> $(pwd)/boost/libs/url/mrdocs-multi.yml echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdocs-multi.yml echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdocs-multi.yml - + set -x for variant in single multi; do for format in adoc html xml; do @@ -401,7 +402,7 @@ jobs: chmod 600 /home/runner/.ssh/github_actions ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add /home/runner/.ssh/github_actions - + # Copy files demo_dir="/var/www/mrdox.com/demos/${{ github.ref_name }}" ssh ubuntu@dev-websites.cpp.al "rm -rf $demo_dir; mkdir -p $demo_dir"