Skip to content

Commit 847c57c

Browse files
committed
CI: add version tag and firwmare version to plugin name
1 parent c186b88 commit 847c57c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-metamodule-plugin.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
type: boolean
1818

1919
jobs:
20+
env:
21+
FW_VERSION: ${{ inputs.SDK_branch == 'v2.0-dev' && '-dev-12' || '' }}
22+
2023
build-lin:
2124
strategy:
2225
matrix:
@@ -57,8 +60,8 @@ jobs:
5760
git clone -b ${{ inputs.SDK_branch }} https://github.com/4ms/metamodule-plugin-sdk --recursive
5861
cmake -B build -G Ninja -DMETAMODULE_SDK_DIR=metamodule-plugin-sdk
5962
cmake --build build
60-
# Optional: add version tag to the plugin file name:
61-
# cd metamodule-plugins && for f in *.mmplugin; do mv $f ${f%.mmplugin}-${{ env.CI_REF_NAME }}.mmplugin; done;
63+
# Add version tag and required firmware version to the plugin file name:
64+
cd metamodule-plugins && for f in *.mmplugin; do mv $f ${f%.mmplugin}-${{ env.CI_REF_NAME }}${{ env.FW_VERSION }}.mmplugin; done;
6265
6366
- name: Release
6467
if: startsWith(github.ref, 'refs/tags/') && ${{ inputs.do_release }}

0 commit comments

Comments
 (0)