Skip to content

Commit

Permalink
Using Ninja with ClangCL for CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Feb 26, 2024
1 parent dd6f2f2 commit e7d4768
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- os: ubuntu-latest
cmake_args: "-DCMAKE_CXX_COMPILER=g++-11"
- os: windows-2022
cmake_args: "-TClangCL -A x64"
cmake_args: "-G\"Ninja Multi-Config\" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl"
- os: macos-13
cmake_args: "-DCMAKE_BUILD_TYPE=Release"

steps:
- name: Install Linux Deps
if: runner.os == 'Linux'
Expand All @@ -43,6 +43,14 @@ jobs:
with:
xcode-version: '15.2'

- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2

- name: Setup MSVC devcmd
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Get latest CMake
uses: lukka/get-cmake@latest

Expand Down Expand Up @@ -70,14 +78,12 @@ jobs:
path: modules/jai

- name: Configure
shell: bash
env:
CMAKE_ARGS: ${{ matrix.cmake_args }}
CONFIGURE_ADD_ONS_FLAG: "${{ github.event_name != 'pull_request' && '-DBYOD_BUILD_ADD_ON_MODULES=ON' || '' }}"
run: cmake -Bbuild $CONFIGURE_ADD_ONS_FLAG $CMAKE_ARGS

- name: Build
shell: bash
run: cmake --build build --config Release --parallel 4 --target BYOD_Standalone BYOD_VST3 BYOD_CLAP

- name: Unit Tests
Expand Down

0 comments on commit e7d4768

Please sign in to comment.