core: compiler changed to cl.exe #57
Workflow file for this run
This file contains hidden or 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
name: datastructures-algorithms-ci-cd-windows | |
on: | |
push: | |
branches: [ main, release ] | |
pull_request: | |
branches: [ main, release ] | |
jobs: | |
lint-build-test: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Install dependencies | |
run: | | |
choco install cmake -y | |
choco install ninja -y | |
choco install llvm -y | |
- name: Configure CMake | |
run: cmake -S . -B build -G "Ninja" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
- name: Run clang-tidy | |
run: | | |
clang-tidy --version | |
$files = Get-ChildItem -Recurse -Path include, source -Include *.h,*.hpp,*.cpp,*.cc,*.cxx -File | |
foreach ($file in $files) { | |
Write-Host "Running clang-tidy on $($file.FullName)" | |
clang-tidy -p build "$($file.FullName)" --warnings-as-errors=* | |
} | |
- name: Build | |
run: cmake --build build | |
- name: Run tests | |
run: ctest --test-dir build --output-on-failure |