Skip to content

Commit ad92b8f

Browse files
committed
Add clap validation
1 parent e5b7593 commit ad92b8f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-mac.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
ARTIFACT_EXT: mac
1515
PLUGINVAL_VER: v1.0.4
1616
VST3_VER: v3.8.0_build_66
17+
CLAP_VALIDATOR_VER: "0.3.2"
1718

1819
jobs:
1920
build-mac:
@@ -130,12 +131,36 @@ jobs:
130131
iPlug2/Dependencies/IPlug/VST3_SDK
131132
key: ${{runner.os}}-vst3-${{env.VST3_VER}}
132133

134+
- name: Cache CLAP Validator
135+
id: cache-clap-validator
136+
uses: actions/cache@v3
137+
with:
138+
path: |
139+
./clap-validator
140+
key: ${{runner.os}}-clap-validator-${{env.CLAP_VALIDATOR_VER}}
141+
142+
- name: Get CLAP Validator
143+
if: steps.cache-clap-validator.outputs.cache-hit != 'true'
144+
shell: bash
145+
run: |
146+
set -eo pipefail
147+
curl -fL "https://github.com/free-audio/clap-validator/releases/download/${{env.CLAP_VALIDATOR_VER}}/clap-validator-${{env.CLAP_VALIDATOR_VER}}-macos-universal.tar.gz" -o clap-validator.tar.gz
148+
tar -xzf clap-validator.tar.gz
149+
mv binaries/clap-validator ./clap-validator
150+
rm -rf binaries clap-validator.tar.gz
151+
133152
- name: Test VST3 with VST3 Validator
134153
shell: bash
135154
run: |
136155
set -eo pipefail
137156
./iPlug2/Dependencies/IPlug/VST3_SDK/validator ${{env.PROJECT_NAME}}.vst3
138157
158+
- name: Test CLAP with CLAP Validator
159+
shell: bash
160+
run: |
161+
set -eo pipefail
162+
./clap-validator validate ./${{env.PROJECT_NAME}}.clap
163+
139164
- name: Test VST3 with Pluginval
140165
shell: bash
141166
run: |

0 commit comments

Comments
 (0)