Skip to content

Commit

Permalink
Install llvm-19 on unix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Nov 30, 2024
1 parent 96a0e72 commit 30ed710
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ jobs:

- name: Build
working-directory: asio
run: cmake --build build/coverage -j 2
run: cmake --build build/coverage -j 4

- name: Test
working-directory: asio/build/coverage
run: ctest --output-on-failure --no-tests=error -j 2
run: ctest --output-on-failure --no-tests=error -j 4

- name: Process coverage info
working-directory: asio
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Build
working-directory: asio
run: cmake --build build/sanitize -j 2
run: cmake --build build/sanitize -j 4

- name: Test
working-directory: asio/build/sanitize
Expand All @@ -100,7 +100,7 @@ jobs:
strict_init_order=1:\
detect_leaks=1"
UBSAN_OPTIONS: print_stacktrace=1
run: ctest --output-on-failure --no-tests=error -j 2
run: ctest --output-on-failure --no-tests=error -j 4

test:
needs: [lint]
Expand All @@ -116,35 +116,47 @@ jobs:

- name: Install static analyzers
if: matrix.os == 'ubuntu-24.04'
run: >-
sudo apt-get install clang-tidy-18 cppcheck -y -q
sudo update-alternatives --install
/usr/bin/clang-tidy clang-tidy
/usr/bin/clang-tidy-18 150
run: |
sudo apt-get install cppcheck ninja-build -y -q
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19 all
sudo update-alternatives --install \
/usr/bin/clang-tidy clang-tidy \
/usr/bin/clang-tidy-19 150
- name: Install llvm-19
if: startsWith(matrix.os, 'macos')
run: |
brew install llvm@19
- name: Setup MultiToolTask
if: matrix.os == 'windows-2022'
working-directory: asio
run: |
Add-Content "$env:GITHUB_ENV" 'UseMultiToolTask=true'
Add-Content "$env:GITHUB_ENV" 'EnforceProcessCountAcrossBuilds=true'
cmake --preset=ci-windows
- name: Configure
shell: pwsh
if: matrix.os != 'windows-2022'
working-directory: asio
env:
CXX: clang++-19
shell: pwsh
run: cmake "--preset=ci-$("${{ matrix.os }}".split("-")[0])"

- name: Build
working-directory: asio
run: cmake --build build --config Release -j 2
run: cmake --build build --config Release -j 4

- name: Install
working-directory: asio
run: cmake --install build --config Release --prefix prefix

- name: Test
working-directory: asio/build
run: ctest --output-on-failure --no-tests=error -C Release -j 2
run: ctest --output-on-failure --no-tests=error -C Release -j 4

docs:
# Deploy docs only when builds succeed
Expand Down

0 comments on commit 30ed710

Please sign in to comment.