Skip to content

Commit 60880bc

Browse files
committed
Update workflows
1 parent dbf648a commit 60880bc

4 files changed

Lines changed: 45 additions & 63 deletions

File tree

.github/workflows/linux.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,38 @@ jobs:
2525
- name: build
2626
run: |
2727
cd Build
28-
make
28+
make all
2929
# - name: test
30-
# run: cd build && ctest
30+
# run: cd build && ctest
31+
- name: deploy_test
32+
if: github.ref == 'refs/heads/testing'
33+
env:
34+
bintrayUser: ${{ secrets.bintrayUsername }}
35+
bintrayApiKey: ${{ secrets.bintrayApiKey }}
36+
run: |
37+
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
38+
cd Build
39+
cp -r Release open-ephys
40+
cp -r ../Resources/DataFiles open-ephys
41+
zipfile=open-ephys-${gui_ver}-linux-beta.zip
42+
zip -r $zipfile open-ephys
43+
user_info="$bintrayUser:$bintrayApiKey"
44+
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-linux/$gui_ver/$zipfile
45+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-linux/$gui_ver/publish
46+
shell: bash
47+
- name: deploy_release
48+
if: github.ref == 'refs/heads/master'
49+
env:
50+
bintrayUser: ${{ secrets.bintrayUsername }}
51+
bintrayApiKey: ${{ secrets.bintrayApiKey }}
52+
run: |
53+
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
54+
cd Build
55+
cp -r Release open-ephys
56+
cp -r ../Resources/DataFiles open-ephys
57+
zipfile=open-ephys-${gui_ver}-linux.zip
58+
zip -r $zipfile open-ephys
59+
user_info="$bintrayUser:$bintrayApiKey"
60+
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-linux/$gui_ver/$zipfile
61+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-linux/$gui_ver/publish
62+
shell: bash

.github/workflows/notes.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/osx.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: build
2727
run: |
2828
cd Build
29-
xcodebuild -project open-ephys-GUI.xcodeproj -scheme=ALL_BUILD -configuration Release
29+
xcodebuild -project open-ephys-GUI.xcodeproj -scheme ALL_BUILD -configuration Release
3030
# - name: test
3131
# run: cd build && ctest
3232
- name: deploy_test
@@ -35,16 +35,12 @@ jobs:
3535
bintrayUser: ${{ secrets.bintrayUsername }}
3636
bintrayApiKey: ${{ secrets.bintrayApiKey }}
3737
run: |
38-
git clone --branch mac https://github.com/open-ephys-gui-binaries/open-ephys.git
39-
cp -r open-ephys/open-ephys.app/Contents/PlugIns/KWIKFormat.bundle Build/Release/open-ephys.app/Contents/PlugIns
40-
cp -r open-ephys/open-ephys.app/Contents/PlugIns/NWBFormat.bundle Build/Release/open-ephys.app/Contents/PlugIns
41-
cp -r open-ephys/open-ephys.app/Contents/shared Build/Release/open-ephys.app/Contents/
4238
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
4339
zipfile=open-ephys-${gui_ver}-mac-beta.zip
4440
cd Build/Release
4541
mkdir open-ephys
4642
mv open-ephys.app/ open-ephys
47-
cp -r ../../open-ephys/DataFiles open-ephys/
43+
cp -r ../../Resources/DataFiles open-ephys/
4844
zip -r $zipfile open-ephys
4945
user_info="$bintrayUser:$bintrayApiKey"
5046
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-mac/$gui_ver/$zipfile
@@ -55,17 +51,13 @@ jobs:
5551
bintrayUser: ${{ secrets.bintrayUsername }}
5652
bintrayApiKey: ${{ secrets.bintrayApiKey }}
5753
run: |
58-
git clone --branch mac https://github.com/open-ephys-gui-binaries/open-ephys.git
59-
cp -r open-ephys/open-ephys.app/Contents/PlugIns/KWIKFormat.bundle Build/Release/open-ephys.app/Contents/PlugIns
60-
cp -r open-ephys/open-ephys.app/Contents/PlugIns/NWBFormat.bundle Build/Release/open-ephys.app/Contents/PlugIns
61-
cp -r open-ephys/open-ephys.app/Contents/shared Build/Release/open-ephys.app/Contents/
6254
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
63-
zipfile=open-ephys-${gui_ver}-mac-beta.zip
55+
zipfile=open-ephys-${gui_ver}-mac.zip
6456
cd Build/Release
6557
mkdir open-ephys
6658
mv open-ephys.app/ open-ephys
67-
cp -r ../../open-ephys/DataFiles open-ephys/
59+
cp -r ../../Resources/DataFiles open-ephys/
6860
zip -r $zipfile open-ephys
6961
user_info="$bintrayUser:$bintrayApiKey"
70-
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-mac/$gui_ver/$zipfile
71-
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-mac/$gui_ver/publish
62+
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-mac/$gui_ver/$zipfile
63+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-mac/$gui_ver/publish

.github/workflows/windows.yml

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,9 @@ jobs:
3737
bintrayUser: ${{ secrets.bintrayUsername }}
3838
bintrayApiKey: ${{ secrets.bintrayApiKey }}
3939
run: |
40-
git clone --branch windows https://github.com/open-ephys-gui-binaries/open-ephys.git
41-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-3a/neuropixels-3a-windows_0.1.0-API6.zip --output neuropixels-3a.zip
42-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-pxi/neuropixels-pxi-windows_0.1.0-API6.zip --output neuropixels-pxi.zip
43-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/nidaq-plugin/nidaq-plugin-windows_0.1.0-API6.zip --output nidaq-plugin.zip
44-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/probe-viewer/probe-viewer-windows_0.1.0-API6.zip --output probe-viewer.zip
45-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/StreamMuxer/StreamMuxer-windows_0.1.0-API6.zip --output stream-muxer.zip
46-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/ZMQPlugins/ZMQPlugins-windows_0.1.0-API6.zip --output zmq-plugins.zip
47-
powershell Expand-Archive neuropixels-3a.zip -DestinationPath Build/Release
48-
powershell Expand-Archive neuropixels-pxi.zip -DestinationPath Build/Release
49-
powershell Expand-Archive nidaq-plugin.zip -DestinationPath Build/Release
50-
powershell Expand-Archive stream-muxer.zip -DestinationPath Build/Release
51-
powershell Expand-Archive probe-viewer.zip -DestinationPath Build/Release
52-
powershell Expand-Archive zmq-plugins.zip -DestinationPath Build/Release
53-
cp -r open-ephys/shared Build/Release
54-
cp -r open-ephys/plugins/KWIKFormat.dll Build/Release/plugins
55-
cp -r open-ephys/plugins/NWBFormat.dll Build/Release/plugins
5640
cd Build
5741
mv Release open-ephys
42+
cp -r ../Resources/DataFiles open-ephys
5843
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
5944
zipfile=open-ephys-${gui_ver}-windows-beta.zip
6045
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
@@ -68,28 +53,13 @@ jobs:
6853
bintrayUser: ${{ secrets.bintrayUsername }}
6954
bintrayApiKey: ${{ secrets.bintrayApiKey }}
7055
run: |
71-
git clone --branch windows https://github.com/open-ephys-gui-binaries/open-ephys.git
72-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-3a/neuropixels-3a-windows_0.1.0-API6.zip --output neuropixels-3a.zip
73-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/neuropixels-pxi/neuropixels-pxi-windows_0.1.0-API6.zip --output neuropixels-pxi.zip
74-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/nidaq-plugin/nidaq-plugin-windows_0.1.0-API6.zip --output nidaq-plugin.zip
75-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/probe-viewer/probe-viewer-windows_0.1.0-API6.zip --output probe-viewer.zip
76-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/StreamMuxer/StreamMuxer-windows_0.1.0-API6.zip --output stream-muxer.zip
77-
curl -L https://dl.bintray.com/open-ephys-gui-plugins/ZMQPlugins/ZMQPlugins-windows_0.1.0-API6.zip --output zmq-plugins.zip
78-
powershell Expand-Archive neuropixels-3a.zip -DestinationPath Build/Release
79-
powershell Expand-Archive neuropixels-pxi.zip -DestinationPath Build/Release
80-
powershell Expand-Archive nidaq-plugin.zip -DestinationPath Build/Release
81-
powershell Expand-Archive stream-muxer.zip -DestinationPath Build/Release
82-
powershell Expand-Archive probe-viewer.zip -DestinationPath Build/Release
83-
powershell Expand-Archive zmq-plugins.zip -DestinationPath Build/Release
84-
cp -r open-ephys/shared Build/Release
85-
cp -r open-ephys/plugins/KWIKFormat.dll Build/Release/plugins
86-
cp -r open-ephys/plugins/NWBFormat.dll Build/Release/plugins
8756
cd Build
8857
mv Release open-ephys
58+
cp -r ../Resources/DataFiles open-ephys
8959
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
90-
zipfile=open-ephys-${gui_ver}-windows-beta.zip
60+
zipfile=open-ephys-${gui_ver}-windows.zip
9161
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
9262
user_info="$bintrayUser:$bintrayApiKey"
93-
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/$zipfile
94-
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-windows/$gui_ver/publish
63+
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-windows/$gui_ver/$zipfile
64+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-windows/$gui_ver/publish
9565
shell: bash

0 commit comments

Comments
 (0)