Skip to content

Commit

Permalink
Update GHA workflows for preview release
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Jul 10, 2024
1 parent 067d1c9 commit 6e06662
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 17 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,26 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set env vars
run: |
if [ ${{github.ref_name}} == 'juce8' ]; then
echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
else
echo "Invalid branch : ${{github.ref_name}}"
exit 1
fi
- name: setup
run: |
sudo apt update
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce8
git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
cd plugin-GUI/Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
cd ../..
mkdir OEPlugins && cd OEPlugins
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch juce8
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch ${{github.ref_name}}
cd OpenEphysHDF5Lib/Build
cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release ..
make install
Expand All @@ -37,7 +47,7 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/juce8'
if: github.ref == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build"
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,27 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set env vars
run: |
if [ ${{github.ref_name}} == 'juce8' ]; then
echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
else
echo "Invalid branch : ${{github.ref_name}}"
exit 1
fi
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: setup
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce8
git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
cd plugin-GUI/Build && cmake -G "Xcode" ..
cd ../..
mkdir OEPlugins && cd OEPlugins
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch juce8
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch ${{github.ref_name}}
cd OpenEphysHDF5Lib/Build
cmake -G "Xcode" ..
xcodebuild -configuration Release
Expand All @@ -42,7 +52,7 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/juce8'
if: github.ref == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
MACOS_CERTIFICATE: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,42 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
os: [windows-latest]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set env vars
run: |
if [ ${{github.ref_name}} == 'juce8' ]; then
echo "GUI_BRANCH=development-juce8" >> "$GITHUB_ENV"
echo "GUI_LIB_VERSION=v1.0.0-dev" >> "$GITHUB_ENV"
elif [ ${{github.ref_name}} == 'testing-juce8' ]; then
echo "GUI_BRANCH=testing-juce8" >> "$GITHUB_ENV"
echo "GUI_LIB_VERSION=v1.0.0-alpha" >> "$GITHUB_ENV"
else
echo "Invalid branch : ${{github.ref_name}}"
exit 1
fi
shell: bash
- name: setup
env:
repo: open-ephys-gui
package: "open-ephys-lib"
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch development-juce8
git clone https://github.com/open-ephys/plugin-GUI.git --branch $GUI_BRANCH
cd plugin-GUI/Build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake -G "Visual Studio 17 2022" -A x64 ..
mkdir Release && cd Release
curl -L https://openephysgui.jfrog.io/artifactory/Libraries/open-ephys-lib-v0.7.0.zip --output open-ephys-lib.zip
curl -L https://openephysgui.jfrog.io/artifactory/Libraries/open-ephys-lib-$GUI_LIB_VERSION.zip --output open-ephys-lib.zip
unzip open-ephys-lib.zip
shell: bash
- name: config-hdf5lib
run: |
cd ../..
mkdir OEPlugins && cd OEPlugins
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch juce8
git clone https://github.com/open-ephys-plugins/OpenEphysHDF5Lib.git --branch ${{github.ref_name}}
cd OpenEphysHDF5Lib/Build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake -G "Visual Studio 17 2022" -A x64 ..
shell: bash
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
Expand All @@ -46,7 +56,7 @@ jobs:
- name: configure
run: |
cd Build
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake -G "Visual Studio 17 2022" -A x64 ..
shell: bash
- name: build
run: |
Expand All @@ -56,7 +66,7 @@ jobs:
# - name: test
# run: cd build && ctest
- name: deploy
if: github.ref == 'refs/heads/juce8'
if: github.ref == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
Expand Down

0 comments on commit 6e06662

Please sign in to comment.