Add ability to compile CppInterOp and tests on Windows with different compiler #198
Workflow file for this run
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
name: clang-tidy-review | |
on: | |
pull_request: | |
paths: | |
- '**.h' | |
- '**.cpp' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@v3 | |
- name: Install LLVM and Clang | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "16.0.0" | |
- name: Run clang-tidy | |
uses: ZedThree/[email protected] | |
id: review | |
with: | |
build_dir: build | |
apt_packages: libxml2,libxml2-dev,libtinfo-dev,zlib1g-dev,libzstd-dev | |
split_workflow: true | |
cmake_command: > | |
pip install cmake lit && | |
cmake --version && | |
cmake . -B build -DCMAKE_BUILD_TYPE="Release" | |
-DUSE_CLING=OFF | |
-DUSE_REPL=ON | |
-DLLVM_DIR="$GITHUB_WORKSPACE/llvm" | |
-DBUILD_SHARED_LIBS=ON | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
- name: Upload artifacts | |
uses: ZedThree/clang-tidy-review/[email protected] |