{"id":21713740,"url":"https://github.com/blurstudio/mayamoduleactions","last_synced_at":"2025-04-12T18:50:33.532Z","repository":{"id":256873544,"uuid":"850135075","full_name":"blurstudio/mayaModuleActions","owner":"blurstudio","description":"Some actions for compiling plugins for Maya, and putting them into easily installable modules","archived":false,"fork":false,"pushed_at":"2024-10-04T23:36:21.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T13:05:34.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blurstudio.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-31T00:45:52.000Z","updated_at":"2025-03-25T03:40:01.000Z","dependencies_parsed_at":"2024-09-13T15:11:48.778Z","dependency_job_id":"3ba2c666-b180-4d92-9767-91fdc9369639","html_url":"https://github.com/blurstudio/mayaModuleActions","commit_stats":null,"previous_names":["blurstudio/mayamoduleactions"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurstudio%2FmayaModuleActions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurstudio%2FmayaModuleActions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurstudio%2FmayaModuleActions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurstudio%2FmayaModuleActions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blurstudio","download_url":"https://codeload.github.com/blurstudio/mayaModuleActions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618222,"owners_count":21134199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T00:20:12.809Z","updated_at":"2025-04-12T18:50:33.498Z","avatar_url":"https://github.com/blurstudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maya Module Actions\n\nThree actions for streamlining the compiling and distribution of maya modules: `getMayaDevkit`, `mesonBuild`, `packageMayaModule`\n\n\n## Get Maya Devkit\n\nDownloads (and caches) the maya devkit for all the versions and updates you use in your matrix\n\nBasic Usage:\n\n```\n- name: Get Maya Devkit\n  id: get-devkit\n  uses: blurstudio/mayaModuleActions/getMayaDevkit@v1\n  with:\n    maya: 2023\n    update: 3\n    cache: true\n```\n\nThis action also outputs the devkit path, which can be accessed like so (assuming the `id` is set to `get-devkit`)\n\n```\n${{ steps.get-devkit.outputs.devkit-path }}\n```\n\nAnd, just for convenience, it also outputs the maya plugin extension for the current operating system\n\n```\n${{ steps.get-devkit.outputs.plugin-ext }}\n```\n\n\n## Meson Build\n\nThis is just a conveneince wrapper for setting up and building with Meson (vs CMake)\n\nBasic Usage: \n\n```\n- name: Build\n  uses: blurstudio/mayaModuleActions/mesonBuild@v1\n  with:\n    setup-args: \u003e\n      -Dmaya:maya_version=${{ matrix.maya }}\n      -Dmaya:maya_devkit_base=${{ steps.get-devkit.outputs.devkit-path }}\n      --buildtype release\n      --backend ninja\n```\n\nThis is not maya specific, so you can re-use this elsewhere if you like.\nAnd it automatically detects a Windows build, and sets up the visual studio environment for compiling.\nYou could invoke meson directly, But dealing with the different shells required is a pain, and this action handles that part cleanly.\n\n\n## Package Maya Module\n\nGrabs all the compiled artifacts, and builds a .mod file for distributing your plugins.\n\nBasic Usage:\n\n```\n- name: Package\n  uses: blurstudio/mayaModuleActions/packageMayaModule@v1\n  with: \n    module-name: TwistSpline\n    folder-list: scripts icons\n    version: v1.2.3\n```\n\nThis would upload an artifact named TwistSpline-v1.2.3.zip.\n\n### Requirements\n\nAll of your plugin artifacts must be named like this\n\n    \u003coperatingSystem\u003e-\u003cmayaYear\u003e-plugin/\u003cpluginName\u003e.mll\n\n\nAny Python modules that go with your plugin must be named like this\n\n    \u003coperatingSystem\u003e-\u003cmayaYear\u003e-pyModule/\u003cpythonModule\u003e.pyd\n\nOR\n\nThe python modules may be compiled with the limited api, and can therefore be reused across all maya versions. If so, pass `py-limited-api: true`, and build the python modules without a year in their folder structure\n\n    \u003coperatingSystem\u003e-pyModule/\u003cpythonModule\u003e.pyd\n\n## Full Example\n\nHere's an example of a full yaml that will build, package, and upload artifacts, and release them when properly tagged.\n\n```\nname: build\n\non:\n  push:\n    branches: [ master ]\n    tags:\n      - v*\n  pull_request:\n    branches: [ master ]\n\n# A minimal test matrix \n# matrix:\n#   maya: [2024]\n#   os: [macos-latest, ubuntu-latest, windows-latest]\n#   include: \n#     - maya: 2024\n#       update: 2\n\njobs:\n  compile_plugin:\n    strategy:\n      matrix:\n        maya: [2022, 2023, 2024, 2025]\n        os: [macos-13, macos-latest, ubuntu-latest, windows-latest]\n        include: \n          # Add the maya update versions here\n          - maya: 2022\n            update: 5\n          - maya: 2023\n            update: 3\n          - maya: 2024\n            update: 2\n          - maya: 2025\n            update: 1\n\n        # cross-compiling is annoying so just fall back to macos-13\n        exclude: \n          - os: macos-latest\n            maya: 2022\n          - os: macos-latest\n            maya: 2023\n          - os: macos-13\n            maya: 2024\n          - os: macos-13\n            maya: 2025\n\n      fail-fast: false\n\n    runs-on: ${{ matrix.os }}\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Get Maya Devkit\n        id: get-devkit\n        uses: blurstudio/mayaModuleActions/getMayaDevkit@v1\n        with:\n          maya: ${{ matrix.maya }}\n          update: ${{ matrix.update }}\n\n      - name: Build\n        uses: blurstudio/mayaModuleActions/mesonBuild@v1\n        with:\n          setup-args: \u003e\n            -Dmaya:maya_version=${{ matrix.maya }}\n            -Dmaya:maya_devkit_base=${{ steps.get-devkit.outputs.devkit-path }}\n            --buildtype release\n            --backend ninja\n\n      - name: Upload Artifacts\n        uses: actions/upload-artifact@v4\n        with:\n          name: ${{ runner.os }}-${{ matrix.maya }}-plugin\n          path: build/*.${{ steps.get-devkit.outputs.plugin-ext }}\n          if-no-files-found: error\n\n  upload_release:\n    name: Upload release\n    needs: compile_plugin\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - run: git fetch --tags origin\n      - name: 'Get Previous tag'\n        id: previoustag\n        uses: \"WyriHaximus/github-action-get-previous-tag@v1\"\n        with:\n          fallback: 0.0.1\n\n      - name: Package\n        uses: blurstudio/mayaModuleActions/packageMayaModule@v1\n        with: \n          module-name: TwistSpline\n          folder-list: scripts icons\n          version: ${{ steps.previoustag.outputs.tag }}\n\n      - name: Upload distribution\n        if: ${{ startsWith(github.ref, 'refs/tags/v') }}\n        uses: softprops/action-gh-release@v1\n        with:\n          token: \"${{ secrets.GITHUB_TOKEN }}\"\n          prerelease: false\n          files: |\n            *.zip\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurstudio%2Fmayamoduleactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblurstudio%2Fmayamoduleactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurstudio%2Fmayamoduleactions/lists"}