Skip to content

Commit

Permalink
Merge pull request #15 from open-ephys-plugins/actions-updates
Browse files Browse the repository at this point in the history
Update actions files
  • Loading branch information
bparks13 authored Oct 10, 2024
2 parents 7bb8037 + 331b67e commit e124186
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ name: linux

on:
push:
branches: [main]
pull_request:

env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build"
package: EphysSocket-linux

jobs:

build-linux:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: [ubuntu-20.04]

steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v4

- name: setup
run: |
sudo apt update
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch main
sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
cd plugin-GUI/Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- name: build
id: build
run: |
cd Build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/main' && steps.build.outcome == 'success'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build"
package: EphysSocket-linux
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
Expand All @@ -43,4 +43,4 @@ jobs:
cp -r $build_dir/*.so plugins
zipfile=${package}_${new_plugin_ver}.zip
zip -r -X $zipfile plugins
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/EphysSocket-plugin/linux/$zipfile"
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/EphysSocket-plugin/linux/$zipfile"
26 changes: 13 additions & 13 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ name: mac

on:
push:
branches: [main]
pull_request:

jobs:
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
package: EphysSocket-mac

jobs:
build-mac:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
runs-on: [macos-latest]

steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v4

- name: setup
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch main
cd plugin-GUI/Build && cmake -G "Xcode" ..
- name: build
id: build
run: |
cd Build
cmake -G "Xcode" ..
xcodebuild -configuration Release
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/main' && steps.build.outcome == 'success'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
package: EphysSocket-mac
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]" | tail -1)
tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ name: Windows

on:
push:
branches: [main]
pull_request:

jobs:
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
package: EphysSocket-windows

jobs:
build-windows:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
runs-on: [windows-2019]

steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v4

- name: setup
env:
repo: open-ephys-gui
Expand All @@ -27,28 +31,25 @@ jobs:
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: |
cd Build
cmake -G "Visual Studio 16 2019" -A x64 ..
shell: bash

- name: Add msbuild to PATH
uses: microsoft/[email protected]
uses: microsoft/setup-msbuild@v2

- name: build-plugin
id: build
run: |
cd Build
msbuild INSTALL.vcxproj -p:Configuration=Release -p:Platform=x64
shell: cmd
# TODO: Perform some basic testing before publishing...
# - name: test
# run: cd build && ctest

- name: deploy
if: github.ref == 'refs/heads/main' && steps.build.outcome == 'success'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
package: EphysSocket-windows
run: |
plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
Expand All @@ -58,4 +59,4 @@ jobs:
zipfile=${package}_${new_plugin_ver}.zip
powershell Compress-Archive -Path "plugins" -DestinationPath ${zipfile}
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/EphysSocket-plugin/windows/$zipfile"
shell: bash
shell: bash

0 comments on commit e124186

Please sign in to comment.