Skip to content

Commit

Permalink
Build the version string into the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tbttfox committed Sep 3, 2024
1 parent aca8d20 commit f6d9954
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: git fetch --tags origin
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.1

- name: Get Maya Devkit
id: get-devkit
Expand All @@ -63,6 +69,7 @@ jobs:
setup-args: >
-Dmaya:maya_version=${{ matrix.maya }}
-Dmaya:maya_devkit_base=${{ steps.get-devkit.outputs.devkit-path }}
-DVERSION_STRING=${{ steps.previoustag.outputs.tag }}
--buildtype release
--backend ninja
Expand Down
2 changes: 1 addition & 1 deletion src/pluginMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SOFTWARE.

MStatus initializePlugin( MObject obj ) {
MStatus status;
MFnPlugin plugin( obj, "BlurStudio", "1.2.1", "Any");
MFnPlugin plugin( obj, "BlurStudio", VERSION_STRING, "Any");

status = plugin.registerData("twistSplineData", TwistSplineData::id, TwistSplineData::creator);
if (!status) {
Expand Down

0 comments on commit f6d9954

Please sign in to comment.