Skip to content

Commit 0101a95

Browse files
committed
wip
1 parent 15dd3f2 commit 0101a95

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

.github/workflows/build-win.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,28 +150,34 @@ jobs:
150150
Remove-Item -Force clap-validator.zip
151151
152152
- name: Test VST3 with Pluginval
153-
shell: pwsh
153+
shell: bash
154154
run: |
155-
$vst3Path = "./${{matrix.project}}.vst3/Contents/x86_64-win/${{matrix.project}}.vst3"
156-
if (Test-Path $vst3Path) {
157-
./pluginval.exe --skip-gui-tests --validate-in-process --output-dir "./bin" --validate $vst3Path
158-
if ($LASTEXITCODE -ne 0) { exit 1 }
159-
} else {
160-
Write-Host "VST3 not found at $vst3Path"
155+
vst3Path="./${{matrix.project}}.vst3/Contents/x86_64-win/${{matrix.project}}.vst3"
156+
if [ -f "$vst3Path" ]; then
157+
# pluginval on Windows may return non-zero even on success, so check output
158+
output=$(./pluginval.exe --skip-gui-tests --validate-in-process --output-dir "./bin" --validate "$vst3Path" 2>&1) || true
159+
echo "$output"
160+
if echo "$output" | grep -q "SUCCESS"; then
161+
echo "Validation passed"
162+
else
163+
echo "Validation failed"
164+
exit 1
165+
fi
166+
else
167+
echo "VST3 not found at $vst3Path"
161168
exit 1
162-
}
169+
fi
163170
164171
- name: Test CLAP with CLAP Validator
165-
shell: pwsh
172+
shell: bash
166173
run: |
167-
$clapPath = "./${{matrix.project}}.clap"
168-
if (Test-Path $clapPath) {
169-
./clap-validator.exe validate $clapPath
170-
if ($LASTEXITCODE -ne 0) { exit 1 }
171-
} else {
172-
Write-Host "CLAP not found at $clapPath"
174+
clapPath="./${{matrix.project}}.clap"
175+
if [ -f "$clapPath" ]; then
176+
./clap-validator.exe validate "$clapPath"
177+
else
178+
echo "CLAP not found at $clapPath"
173179
exit 1
174-
}
180+
fi
175181
176182
- name: Upload artifact
177183
uses: actions/upload-artifact@v4

iPlug2

0 commit comments

Comments
 (0)