Skip to content

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

Change the github actions to build with clang win and msvc

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

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
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
- 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_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -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