File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,18 +83,23 @@ jobs:
8383 needs : [check-semver]
8484 if : always() && !failure() && !cancelled()
8585 runs-on : [ubuntu-22.04]
86+ outputs :
87+ PLUGIN_API : ${{ steps.setup.outputs.PLUGIN_API }}
88+ PLUGIN_VERSION : ${{ steps.setup.outputs.PLUGIN_VERSION }}
8689
8790 steps :
8891 - name : Checkout
8992 uses : actions/checkout@v4
9093
9194 - name : setup
9295 run : |
96+ echo "PLUGIN_VERSION=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")" >> "$GITHUB_OUTPUT"
9397 sudo apt update
9498 cd ../..
9599 git clone https://github.com/open-ephys/plugin-GUI.git --branch main
96100 sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
97101 cd plugin-GUI/$build_dir && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
102+ echo "PLUGIN_API=$(grep -rnw ../Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)" >> "$GITHUB_OUTPUT"
98103
99104 - name : build
100105 id : build
@@ -126,8 +131,8 @@ jobs:
126131
127132 - name : deploy
128133 run : |
129- plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
130- tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
134+ plugin_api=${{ needs.build-linux.outputs.PLUGIN_API }}
135+ tag=${{ needs.build-linux.outputs.PLUGIN_VERSION }}
131136 new_plugin_ver=$tag-API$plugin_api
132137 mkdir plugins
133138 cp -r $build_dir/*.so plugins
Original file line number Diff line number Diff line change @@ -83,16 +83,21 @@ jobs:
8383 needs : [check-semver]
8484 if : always() && !failure() && !cancelled()
8585 runs-on : [macos-latest]
86+ outputs :
87+ PLUGIN_API : ${{ steps.setup.outputs.PLUGIN_API }}
88+ PLUGIN_VERSION : ${{ steps.setup.outputs.PLUGIN_VERSION }}
8689
8790 steps :
8891 - name : Checkout
8992 uses : actions/checkout@v4
9093
9194 - name : setup
9295 run : |
96+ echo "PLUGIN_VERSION=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")" >> "$GITHUB_OUTPUT"
9397 cd ../..
9498 git clone https://github.com/open-ephys/plugin-GUI.git --branch main
9599 cd plugin-GUI/Build && cmake -G "Xcode" ..
100+ echo "PLUGIN_API=$(grep -rnw ../Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)" >> "$GITHUB_OUTPUT"
96101
97102 - name : build
98103 id : build
@@ -132,8 +137,8 @@ jobs:
132137 PROD_MACOS_NOTARIZATION_TEAM_ID : ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
133138 PROD_MACOS_NOTARIZATION_PWD : ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
134139 run : |
135- plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
136- tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
140+ plugin_api=${{ needs.build-mac.outputs.PLUGIN_API }}
141+ tag=${{ needs.build-mac.outputs.PLUGIN_VERSION }}
137142 new_plugin_ver=$tag-API$plugin_api
138143
139144 mkdir plugins
Original file line number Diff line number Diff line change @@ -87,20 +87,25 @@ jobs:
8787 needs : [check-semver]
8888 if : always() && !failure() && !cancelled()
8989 runs-on : [windows-latest]
90+ outputs :
91+ PLUGIN_API : ${{ steps.setup.outputs.PLUGIN_API }}
92+ PLUGIN_VERSION : ${{ steps.setup.outputs.PLUGIN_VERSION }}
9093
9194 steps :
9295 - name : Checkout
9396 uses : actions/checkout@v4
9497
9598 - name : setup
9699 run : |
100+ echo "PLUGIN_VERSION=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")" >> "$GITHUB_OUTPUT"
97101 cd ../..
98102 git clone https://github.com/open-ephys/plugin-GUI.git --branch main
99103 cd plugin-GUI/Build
100104 cmake -G "Visual Studio 17 2022" -A x64 ..
101105 mkdir Release && cd Release
102106 curl -L https://openephys.jfrog.io/artifactory/GUI-binaries/Libraries/open-ephys-lib-v1.0.0.zip --output open-ephys-lib.zip
103107 unzip open-ephys-lib.zip
108+ echo "PLUGIN_API=$(grep -rnw ../../Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)" >> "$GITHUB_OUTPUT"
104109 shell : bash
105110
106111 - name : configure
@@ -142,8 +147,8 @@ jobs:
142147
143148 - name : deploy
144149 run : |
145- plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
146- tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+")
150+ plugin_api=${{ needs.build-windows.outputs.PLUGIN_API }}
151+ tag=${{ needs.build-windows.outputs.PLUGIN_VERSION }}
147152 new_plugin_ver=$tag-API$plugin_api
148153 mkdir plugins
149154 cp $build_dir/*.dll plugins
You can’t perform that action at this time.
0 commit comments