1717 run : |
1818 cd Build
1919 cmake -G "Visual Studio 16 2019" -A x64 ..
20+ - name : Setup MSBuild.exe
21+ uses : warrenbuckley/Setup-MSBuild@v1
2022 - name : build
21- run : cmake --build Build
23+ run : |
24+ msbuild Build/ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64
2225# - name: test
2326# run: cd build && ctest
24-
27+ - name : deploy_test
28+ if : github.ref == 'refs/heads/testing'
29+ env :
30+ bintrayUser : ${{ secrets.bintrayUsername }}
31+ bintrayApiKey : ${{ secrets.bintrayApiKey }}
32+ run : |
33+ git clone --branch windows https://github.com/open-ephys-gui-binaries/open-ephys.git
34+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-3a/neuropixels-3a-windows_0.1.0-API6.zip --output neuropixels-3a.zip
35+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-pxi/neuropixels-pxi-windows_0.1.0-API6.zip --output neuropixels-pxi.zip
36+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/nidaq-plugin/nidaq-plugin-windows_0.1.0-API6.zip --output nidaq-plugin.zip
37+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/probe-viewer/probe-viewer-windows_0.1.0-API6.zip --output probe-viewer.zip
38+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/StreamMuxer/StreamMuxer-windows_0.1.0-API6.zip --output stream-muxer.zip
39+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/ZMQPlugins/ZMQPlugins-windows_0.1.0-API6.zip --output zmq-plugins.zip
40+ powershell Expand-Archive neuropixels-3a.zip -DestinationPath Build/Release
41+ powershell Expand-Archive neuropixels-pxi.zip -DestinationPath Build/Release
42+ powershell Expand-Archive nidaq-plugin.zip -DestinationPath Build/Release
43+ powershell Expand-Archive stream-muxer.zip -DestinationPath Build/Release
44+ powershell Expand-Archive probe-viewer.zip -DestinationPath Build/Release
45+ powershell Expand-Archive zmq-plugins.zip -DestinationPath Build/Release
46+ cp -r open-ephys/shared Build/Release
47+ cp -r open-ephys/plugins/KWIKFormat.dll Build/Release/plugins
48+ cp -r open-ephys/plugins/NWBFormat.dll Build/Release/plugins
49+ cd Build
50+ mv Release open-ephys
51+ gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
52+ zipfile=open-ephys-${gui_ver}-windows-beta.zip
53+ powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
54+ user_info="$bintrayUser:$bintrayApiKey"
55+ curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/$zipfile
56+ curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/publish
57+ shell : bash
58+ - name : deploy_release
59+ if : github.ref == 'refs/heads/master'
60+ env :
61+ bintrayUser : ${{ secrets.bintrayUsername }}
62+ bintrayApiKey : ${{ secrets.bintrayApiKey }}
63+ run : |
64+ git clone --branch windows https://github.com/open-ephys-gui-binaries/open-ephys.git
65+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-3a/neuropixels-3a-windows_0.1.0-API6.zip --output neuropixels-3a.zip
66+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-pxi/neuropixels-pxi-windows_0.1.0-API6.zip --output neuropixels-pxi.zip
67+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/nidaq-plugin/nidaq-plugin-windows_0.1.0-API6.zip --output nidaq-plugin.zip
68+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/probe-viewer/probe-viewer-windows_0.1.0-API6.zip --output probe-viewer.zip
69+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/StreamMuxer/StreamMuxer-windows_0.1.0-API6.zip --output stream-muxer.zip
70+ curl -L https://dl.bintray.com/open-ephys-gui-plugins/ZMQPlugins/ZMQPlugins-windows_0.1.0-API6.zip --output zmq-plugins.zip
71+ powershell Expand-Archive neuropixels-3a.zip -DestinationPath Build/Release
72+ powershell Expand-Archive neuropixels-pxi.zip -DestinationPath Build/Release
73+ powershell Expand-Archive nidaq-plugin.zip -DestinationPath Build/Release
74+ powershell Expand-Archive stream-muxer.zip -DestinationPath Build/Release
75+ powershell Expand-Archive probe-viewer.zip -DestinationPath Build/Release
76+ powershell Expand-Archive zmq-plugins.zip -DestinationPath Build/Release
77+ cp -r open-ephys/shared Build/Release
78+ cp -r open-ephys/plugins/KWIKFormat.dll Build/Release/plugins
79+ cp -r open-ephys/plugins/NWBFormat.dll Build/Release/plugins
80+ cd Build
81+ mv Release open-ephys
82+ gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
83+ zipfile=open-ephys-${gui_ver}-windows-beta.zip
84+ powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
85+ user_info="$bintrayUser:$bintrayApiKey"
86+ curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/$zipfile
87+ curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/publish
88+ shell : bash
0 commit comments