Skip to content

Commit

Permalink
Update GHA Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Nov 23, 2021
1 parent 13df191 commit eec387d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 33 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
- name: setup
run: |
sudo apt update
export CC=gcc-8
export CXX=g++-8
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce6
sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
cd plugin-GUI/Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- name: build
Expand All @@ -31,13 +29,10 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-linux
package: ZMQInterface-linux
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
Expand All @@ -48,6 +43,4 @@ jobs:
cp -r libs/linux/bin/* shared
zipfile=${package}_${new_plugin_ver}.zip
zip -r -X $zipfile plugins shared
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/ZMQInterface-plugin/linux/$zipfile"
13 changes: 4 additions & 9 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: setup
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce6
cd plugin-GUI/Build && cmake -G "Xcode" ..
- name: build
run: |
Expand All @@ -28,13 +28,10 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-mac
package: ZMQInterface-mac
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]" | tail -1)
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
Expand All @@ -45,6 +42,4 @@ jobs:
cp -r libs/macos/bin/* shared
zipfile=${package}_${new_plugin_ver}.zip
zip -r -X $zipfile plugins shared
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/ZMQInterface-plugin/mac/$zipfile"
19 changes: 6 additions & 13 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
package: "open-ephys-lib"
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce6
cd plugin-GUI/Build
cmake -G "Visual Studio 16 2019" -A x64 ..
mkdir Release && cd Release
lib_version=$(curl -s -X GET https://api.bintray.com/packages/open-ephys-gui/Libraries/open-ephys-lib-for-windows/versions/_latest | jq '.name')
lib_version="${lib_version:1:${#lib_version}-2}"
curl -L https://dl.bintray.com/open-ephys-gui/Libraries/open-ephys-lib-for-win-${lib_version}.zip --output open-ephys-lib-for-win-${lib_version}.zip
unzip open-ephys-lib-for-win-${lib_version}.zip
curl -L https://openephysgui.jfrog.io/artifactory/Libraries/open-ephys-lib-v0.6.0.zip --output open-ephys-lib.zip
unzip open-ephys-lib.zip
shell: bash
- name: configure
run: |
Expand All @@ -45,13 +43,10 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-windows
package: ZMQInterface-windows
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
Expand All @@ -60,7 +55,5 @@ jobs:
cp $build_dir/*.dll plugins
zipfile=${package}_${new_plugin_ver}.zip
powershell Compress-Archive -Path "plugins" -DestinationPath ${zipfile}
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/ZMQInterface-plugin/windows/$zipfile"
shell: bash

0 comments on commit eec387d

Please sign in to comment.