Skip to content

Commit f9288e0

Browse files
committed
VST3 validate?
1 parent be56520 commit f9288e0

File tree

1 file changed

+27
-30
lines changed

1 file changed

+27
-30
lines changed

.github/workflows/build-mac.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
BUILD_DIR: build-mac
1414
ARTIFACT_EXT: mac
1515
PLUGINVAL_VER: v1.0.2
16-
VST3_VER: v3.7.7_build_19
16+
VST3_VER: v3.7.7_build_19x
1717

1818
jobs:
1919
build-mac:
@@ -33,7 +33,14 @@ jobs:
3333
path: |
3434
iPlug2/Dependencies/Build
3535
iPlug2/Dependencies/iPlug
36-
key: ${{runner.os}}-${{hashFiles('iPlug2/Dependencies/download-prebuilt-libs.sh', 'iPlug2/Dependencies/IGraphics/build-igraphics-libs-mac.sh', 'iPlug2/Dependencies/IGraphics/build-skia-mac.sh')}}
36+
key: ${{runner.os}}-deps-${{hashFiles('iPlug2/Dependencies/download-prebuilt-libs.sh', 'iPlug2/Dependencies/IGraphics/build-igraphics-libs-mac.sh', 'iPlug2/Dependencies/IGraphics/build-skia-mac.sh')}}
37+
38+
- name: Get Prebuilt Libs
39+
if: steps.cache-deps.outputs.cache-hit != 'true'
40+
shell: bash
41+
run: |
42+
cd iPlug2/Dependencies
43+
./download-prebuilt-libs.sh
3744
3845
- name: Cache VST3 SDK
3946
id: cache-vst3
@@ -43,13 +50,6 @@ jobs:
4350
iPlug2/Dependencies/IPlug/VST3_SDK
4451
key: ${{runner.os}}-vst3-${{env.VST3_VER}}
4552

46-
- name: Get Prebuilt Libs
47-
if: steps.cache-deps.outputs.cache-hit != 'true'
48-
shell: bash
49-
run: |
50-
cd iPlug2/Dependencies
51-
./download-prebuilt-libs.sh
52-
5353
- name: Get VST3 SDK
5454
if: steps.cache-vst3.outputs.cache-hit != 'true'
5555
shell: bash
@@ -65,6 +65,16 @@ jobs:
6565
# submodules: recursive
6666
# path: "iPlug2/Dependencies/IPlug/VST3_SDK"
6767

68+
- name: Build VST3 Validator
69+
if: steps.cache-vst3.outputs.cache-hit != 'true'
70+
shell: bash
71+
run: |
72+
mkdir VST3_BUILD
73+
cd VST3_BUILD
74+
cmake ../iPlug2/Dependencies/IPlug/VST3_SDK -DCMAKE_BUILD_TYPE=Release
75+
make validator -j
76+
mv bin/Release/validator ../iPlug2/Dependencies/IPlug/VST3_SDK
77+
6878
- name: Build
6979
shell: bash
7080
run: |
@@ -110,51 +120,38 @@ jobs:
110120
curl -L "https://github.com/Tracktion/pluginval/releases/download/${{env.PLUGINVAL_VER}}/pluginval_macOS.zip" -o pluginval.zip
111121
unzip pluginval
112122
113-
- name: Cache VST3 SDK
123+
- name: Restore VST3 SDK
114124
id: cache-vst3
115-
uses: actions/cache@v3
125+
uses: actions/cache/restore@v3
116126
with:
117127
path: |
118128
iPlug2/Dependencies/IPlug/VST3_SDK
119129
key: ${{runner.os}}-vst3-${{env.VST3_VER}}
120130

121-
- name: Cache VST3 Validator
122-
id: cache-vst3-validator
123-
uses: actions/cache@v3
124-
with:
125-
path: |
126-
validator
127-
key: ${{runner.os}}-vst3-validator-${{env.VST3_VER}}
128-
129-
- name: Build VST3 Validator
130-
if: steps.cache-vst3-validator.outputs.cache-hit != 'true'
131+
- name: Test VST3 with VST3 Validator
131132
shell: bash
132133
run: |
133-
mkdir VST3_BUILD
134-
cd VST3_BUILD
135-
cmake iPlug2/Dependencies/IPlug/VST3_SDK -DCMAKE_BUILD_TYPE=Release
136-
make validator
137-
mv bin/Release/validator .
134+
./iPlug2/Dependencies/IPlug/VST3_SDK/validator ${{env.PROJECT_NAME}}.vst3
138135
139-
- name: Pluginval VST3
136+
- name: Test VST3 with Pluginval
140137
shell: bash
141138
run: |
142139
pluginval.app/Contents/MacOS/pluginval --skip-gui-tests --validate-in-process --output-dir "./bin" --validate ${{env.PROJECT_NAME}}.vst3 || exit 1
143140
144-
- name: Pluginval AUv2
141+
- name: Test AUv2 with Pluginval
145142
shell: bash
146143
run: |
147144
mkdir -p ~/Library/Audio/Plug-Ins/Components
148145
mv ${{env.PROJECT_NAME}}.component ~/Library/Audio/Plug-Ins/Components
149146
pgrep -x AudioComponentRegistrar >/dev/null && killall -9 AudioComponentRegistrar; echo "killed AudioComponentRegistrar" || echo "AudioComponentRegistrar Process not found"
150147
pluginval.app/Contents/MacOS/pluginval --skip-gui-tests --validate-in-process --output-dir "./bin" --validate ~/Library/Audio/Plug-Ins/Components/${{env.PROJECT_NAME}}.component || exit 1
151148
152-
- name: auval AUv2
149+
- name: Test AUv2 with AUval
153150
shell: bash
154151
run: |
155152
./validate_audiounit.sh config.h
156153
157-
# - name: auval AUv2 real time safety
154+
# - name: Test AUv2 with AUval (RTSafe)
158155
# shell: bash
159156
# run: |
160157
# ./validate_audiounit.sh config.h rtsafe

0 commit comments

Comments
 (0)