Skip to content

Change the github actions to build with clang win and msvc #92

Change the github actions to build with clang win and msvc

Change the github actions to build with clang win and msvc #92

Workflow file for this run

name: Pull Request Validation
on:
pull_request:
branches:
- main
- next
jobs:
build_feature:
name: Build feature
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Get Dependencies
run: |
mkdir deps
cd deps
git clone https://github.com/free-audio/clap
git clone https://github.com/steinbergmedia/vst3sdk
cd vst3sdk
# temporary workaround, switch to vst3 sdk 3.7.7
git switch --detach v3.7.7_build_19
git submodule update --init --recursive
cd ../..
- name: Build project
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCLAP_SDK_ROOT=deps/clap -DVST3_SDK_ROOT=deps/vst3sdk -DCLAP_WRAPPER_OUTPUT_NAME=testplug
cmake --build ./build --config Debug
build_feature-win-clang:
name: Build feature with Clang and Ninja
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Get Dependencies
run: |
mkdir deps
cd deps
git clone https://github.com/free-audio/clap
git clone https://github.com/steinbergmedia/vst3sdk
cd vst3sdk
# temporary workaround, switch to vst3 sdk 3.7.7
git switch --detach v3.7.7_build_19
git submodule update --init --recursive
cd ../..
- name: Build project
run: |
cmake -S . -B ./build -GNinja -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCLAP_SDK_ROOT=deps/clap -DVST3_SDK_ROOT=deps/vst3sdk -DCLAP_WRAPPER_OUTPUT_NAME=testplug
cmake --build ./build --config Debug