-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: antora workflow sets up clang 18
- Loading branch information
1 parent
9460dda
commit 95e50b8
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,7 +353,13 @@ jobs: | |
name: Antora Docs | ||
needs: [ runner-selection ] | ||
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)['ubuntu-latest'] }} | ||
container: ubuntu:23.10 | ||
steps: | ||
- name: Install packages | ||
uses: alandefreitas/cpp-actions/[email protected] | ||
with: | ||
apt-get: git cmake | ||
|
||
- name: Clone Boost.URL | ||
uses: actions/checkout@v4 | ||
|
||
|
@@ -366,12 +372,29 @@ jobs: | |
id: setup-cpp | ||
with: | ||
compiler: clang | ||
version: 17 | ||
version: 18 | ||
|
||
- name: Set environment variables | ||
run: | | ||
set -x | ||
clangpp_path="$(which clang++-18)" | ||
clang_path="$(which clang-18)" | ||
echo "CXX_COMPILER=$clangpp_path" >> $GITHUB_ENV | ||
echo "CXX=$clang_path" >> $GITHUB_ENV | ||
echo "C_COMPILER=$clang_path" >> $GITHUB_ENV | ||
echo "CC=$clang_path" >> $GITHUB_ENV | ||
git config --global --add safe.directory "$(pwd)" | ||
- name: Build Antora Docs | ||
run: | | ||
cd doc | ||
bash ./build_antora.sh | ||
# Antora returns zero even if it fails, so we check if the site directory exists | ||
if [ ! -d "build/site" ]; then | ||
echo "Antora build failed" | ||
exit 1 | ||
fi | ||
- name: Create Antora Docs Artifact | ||
uses: actions/upload-artifact@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters