Install Ninja in CI

https://github.com/actions/runner-images/issues/8343#issuecomment-1727810519

Ninja's presence in the Windows images was due to it being a
transitive dependency of another packages. It was never guaranteed
to be present. The actions/runner-images devs do not plan on adding
it so we're forced to install it ourselves.
This commit is contained in:
Chris Thrasher 2023-09-20 17:28:30 -06:00
parent ff5eaca6a2
commit 739129d009

View File

@ -110,14 +110,14 @@ jobs:
# brew update # brew update
brew install gcovr ninja || true brew install gcovr ninja || true
- name: Install OpenCppCoverage and add to PATH - name: Install Windows Tools
uses: nick-fields/retry@v2 uses: nick-fields/retry@v2
if: matrix.type.name == 'Debug' && runner.os == 'Windows' if: runner.os == 'Windows'
with: with:
max_attempts: 10 max_attempts: 10
timeout_minutes: 3 timeout_minutes: 3
command: | command: |
choco install OpenCppCoverage -y choco install ninja OpenCppCoverage -y
echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH echo "C:\Program Files\OpenCppCoverage" >> $env:GITHUB_PATH
- name: Configure CMake - name: Configure CMake
@ -241,7 +241,9 @@ jobs:
- name: Install Windows Dependencies - name: Install Windows Dependencies
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: curl.exe -o run-clang-tidy https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-15.0.7/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py run: |
choco install ninja
curl.exe -o run-clang-tidy https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-15.0.7/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
- name: Install Linux Dependencies - name: Install Linux Dependencies
if: runner.os == 'Linux' if: runner.os == 'Linux'