Skip to content

Commit

Permalink
[FOLD]
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Oct 30, 2023
1 parent 8270113 commit ae85d62
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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')
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ae85d62

Please sign in to comment.