Skip to content

Commit 263ee4b

Browse files
committed
Update plugin clone directory
1 parent 7d6ddb3 commit 263ee4b

File tree

1 file changed

+30
-18
lines changed

1 file changed

+30
-18
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,20 @@ jobs:
128128
if: steps.cache-data-format.outputs.cache-hit != 'true'
129129
shell: powershell
130130
run: |
131-
New-Item -Path 'OEPlugins' -ItemType Directory -Force
132-
git clone --branch main https://github.com/open-ephys-plugins/open-ephys-data-format.git OEPlugins\open-ephys-data-format
133-
cd OEPlugins\open-ephys-data-format\Build
134-
$mainRepoPath = (Resolve-Path "..\..\").Path
135-
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$mainRepoPath\Plugins\Headers" -DJUCE_DIRECTORY="$mainRepoPath\JuceLibraryCode" ..
131+
$workspace = $env:GITHUB_WORKSPACE
132+
$pluginsDir = Join-Path $workspace "OEPlugins"
133+
New-Item -Path $pluginsDir -ItemType Directory -Force
134+
$pluginDir = Join-Path $pluginsDir "open-ephys-data-format"
135+
git clone --branch main https://github.com/open-ephys-plugins/open-ephys-data-format.git $pluginDir
136+
$buildDir = Join-Path $pluginDir "Build"
137+
cd $buildDir
138+
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$workspace\Plugins\Headers" -DJUCE_DIRECTORY="$workspace\JuceLibraryCode" ..
136139
msbuild ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64 -m
137140
- name: Install open-ephys-data-format
138141
shell: powershell
139142
run: |
140-
cd OEPlugins\open-ephys-data-format\Build
143+
$workspace = $env:GITHUB_WORKSPACE
144+
cd "$workspace\OEPlugins\open-ephys-data-format\Build"
141145
msbuild INSTALL.vcxproj -p:Configuration=Release -p:Platform=x64
142146
- name: Save open-ephys-data-format cache
143147
if: steps.cache-data-format.outputs.cache-hit != 'true'
@@ -157,16 +161,20 @@ jobs:
157161
if: steps.cache-hdf5.outputs.cache-hit != 'true'
158162
shell: powershell
159163
run: |
160-
New-Item -Path 'OEPlugins' -ItemType Directory -Force
161-
git clone --branch main https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git OEPlugins\OpenEphysHDF5Lib
162-
cd OEPlugins\OpenEphysHDF5Lib\Build
163-
$mainRepoPath = (Resolve-Path "..\..\").Path
164-
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$mainRepoPath\Plugins\Headers" -DJUCE_DIRECTORY="$mainRepoPath\JuceLibraryCode" ..
164+
$workspace = $env:GITHUB_WORKSPACE
165+
$pluginsDir = Join-Path $workspace "OEPlugins"
166+
New-Item -Path $pluginsDir -ItemType Directory -Force
167+
$pluginDir = Join-Path $pluginsDir "OpenEphysHDF5Lib"
168+
git clone --branch main https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git $pluginDir
169+
$buildDir = Join-Path $pluginDir "Build"
170+
cd $buildDir
171+
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$workspace\Plugins\Headers" -DJUCE_DIRECTORY="$workspace\JuceLibraryCode" ..
165172
msbuild ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64 -m
166173
- name: Install OpenEphysHDF5Lib
167174
shell: powershell
168175
run: |
169-
cd OEPlugins\OpenEphysHDF5Lib\Build
176+
$workspace = $env:GITHUB_WORKSPACE
177+
cd "$workspace\OEPlugins\OpenEphysHDF5Lib\Build"
170178
msbuild INSTALL.vcxproj -p:Configuration=Release -p:Platform=x64
171179
- name: Save OpenEphysHDF5Lib cache
172180
if: steps.cache-hdf5.outputs.cache-hit != 'true'
@@ -186,16 +194,20 @@ jobs:
186194
if: steps.cache-nwb.outputs.cache-hit != 'true'
187195
shell: powershell
188196
run: |
189-
New-Item -Path 'OEPlugins' -ItemType Directory -Force
190-
git clone --branch main https://github.com/open-ephys-plugins/nwb-format.git OEPlugins\nwb-format
191-
cd OEPlugins\nwb-format\Build
192-
$mainRepoPath = (Resolve-Path "..\..\").Path
193-
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$mainRepoPath\Plugins\Headers" -DJUCE_DIRECTORY="$mainRepoPath\JuceLibraryCode" ..
197+
$workspace = $env:GITHUB_WORKSPACE
198+
$pluginsDir = Join-Path $workspace "OEPlugins"
199+
New-Item -Path $pluginsDir -ItemType Directory -Force
200+
$pluginDir = Join-Path $pluginsDir "nwb-format"
201+
git clone --branch main https://github.com/open-ephys-plugins/nwb-format.git $pluginDir
202+
$buildDir = Join-Path $pluginDir "Build"
203+
cd $buildDir
204+
cmake -G "Visual Studio 17 2022" -A x64 -DPLUGIN_HEADER_PATH="$workspace\Plugins\Headers" -DJUCE_DIRECTORY="$workspace\JuceLibraryCode" ..
194205
msbuild ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64 -m
195206
- name: Install nwb-format
196207
shell: powershell
197208
run: |
198-
cd OEPlugins\nwb-format\Build
209+
$workspace = $env:GITHUB_WORKSPACE
210+
cd "$workspace\OEPlugins\nwb-format\Build"
199211
msbuild INSTALL.vcxproj -p:Configuration=Release -p:Platform=x64
200212
- name: Save nwb-format cache
201213
if: steps.cache-nwb.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)