From 8ba4761902a097bee484d7f144de6fbcae8c2396 Mon Sep 17 00:00:00 2001 From: Vamsi-2581 <245859299+Vamsi-2581@users.noreply.github.com> Date: Tue, 3 Nov 2026 11:53:23 +0530 Subject: [PATCH] ci: run Steinberg VST3 validator --- .github/workflows/build-native.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml index 724c27ec4..d2c3d6ce5 100644 --- a/.github/workflows/build-native.yml +++ b/.github/workflows/build-native.yml @@ -45,6 +45,30 @@ jobs: ./download-prebuilt-libs.sh shell: bash + - name: Build Steinberg validator (macOS) + if: matrix.os == 'macOS-latest' + run: | + git clone --depth=1 https://github.com/steinbergmedia/vst3sdk.git "$RUNNER_TEMP/vst3sdk" + cd "$RUNNER_TEMP/vst3sdk" + git submodule update --init --depth=1 pluginterfaces base public.sdk cmake + cmake -S . -B VST3_BUILD -DSMTG_ENABLE_VST3_PLUGIN_EXAMPLES=OFF -DSMTG_ENABLE_VST3_HOSTING_EXAMPLES=ON -DSMTG_ENABLE_VSTGUI_SUPPORT=OFF + cmake --build VST3_BUILD --target validator --config Release --parallel 2 + shell: bash + + - name: Build Steinberg validator (Windows) + if: matrix.os == 'windows-latest' + run: | + $sdk = Join-Path $env:RUNNER_TEMP "vst3sdk" + git clone --depth=1 https://github.com/steinbergmedia/vst3sdk.git $sdk + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + git -C $sdk submodule update --init --depth=1 pluginterfaces base public.sdk cmake + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + cmake -S $sdk -B (Join-Path $sdk "VST3_BUILD") -DSMTG_ENABLE_VST3_PLUGIN_EXAMPLES=OFF -DSMTG_ENABLE_VST3_HOSTING_EXAMPLES=ON -DSMTG_ENABLE_VSTGUI_SUPPORT=OFF + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + cmake --build (Join-Path $sdk "VST3_BUILD") --target validator --config Release --parallel 2 + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + shell: pwsh + - name: Build macOS if: matrix.os == 'macOS-latest' run: | @@ -52,6 +76,12 @@ jobs: ./makedist-mac.sh full zip shell: bash + - name: Validate VST3 bundle (macOS) + if: matrix.os == 'macOS-latest' + run: | + "$RUNNER_TEMP/vst3sdk/VST3_BUILD/bin/validator" "$HOME/Library/Audio/Plug-Ins/VST3/NeuralAmpModeler.vst3" + shell: bash + - name: Add msbuild to PATH (Windows) if: matrix.os == 'windows-latest' uses: microsoft/setup-msbuild@v1.0.2 @@ -63,6 +93,16 @@ jobs: .\makedist-win.bat full zip shell: pwsh + - name: Validate VST3 bundle (Windows) + if: matrix.os == 'windows-latest' + run: | + $validator = Get-ChildItem (Join-Path $env:RUNNER_TEMP "vst3sdk/VST3_BUILD") -Filter validator.exe -Recurse | Select-Object -First 1 + if (-not $validator) { throw "Could not find validator.exe in the VST3 SDK build" } + $bundle = Join-Path $env:GITHUB_WORKSPACE "NeuralAmpModeler/build-win/NeuralAmpModeler.vst3" + & $validator.FullName $bundle + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + shell: pwsh + - name: Upload artifact uses: actions/upload-artifact@v4 with: