From b27c6f1f9acf98c8ef9ee7a6ad8d6ae12a172d8a Mon Sep 17 00:00:00 2001 From: Tyler Fox Date: Tue, 17 Oct 2023 17:42:36 -0700 Subject: [PATCH] Add maya 2024.1 to the build workflow (#3) Add maya 2024.1 to the build workflow --- .github/workflows/main.yml | 61 ++++++++++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 134125d..731b3b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,8 @@ jobs: devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_3_Update_DEVKIT_Windows.zip" - maya: "2023" devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2023/Autodesk_Maya_2023_DEVKIT_Windows.zip" + - maya: "2024" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2024/Autodesk_Maya_2024_1_Update_DEVKIT_Windows.zip" steps: - name: Checkout code @@ -66,8 +68,8 @@ jobs: artifacts/blurdeform/win64-${{matrix.maya}}/plug-ins/blurPostDeform.mll artifacts/blurdeform.mod - maya-macos: - runs-on: macos-latest + maya-macos-11: + runs-on: macos-11 strategy: fail-fast: false @@ -98,7 +100,7 @@ jobs: - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '14' + xcode-version: '11.7' - name: Configure CMake run: | @@ -121,6 +123,53 @@ jobs: artifacts/blurdeform/mac-${{matrix.maya}}/plug-ins/blurPostDeform.bundle artifacts/blurdeform.mod + maya-macos-12: + runs-on: macos-12 + + strategy: + fail-fast: false + + matrix: + include: + - maya: "2024" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2024/Autodesk_Maya_2024_1_Update_DEVKIT_Mac.dmg" + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: true + + - name: Install devkit + run: | + curl -o devkit.dmg ${{matrix.devkit}} + MOUNTDIR=$(hdiutil mount devkit.dmg | awk 'END {$1=$2=""; print $0}') + cp -r $MOUNTDIR . + + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14' + + - name: Configure CMake + run: | + cmake -G Xcode -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION=${{matrix.maya}} -DMAYA_DEVKIT_BASE="$PWD/devkitBase" + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Repath Artifacts + run: | + mkdir -p artifacts/blurdeform/mac-${{matrix.maya}}/plug-ins + cp ./build/${{env.BUILD_TYPE}}/blurPostDeform.bundle artifacts/blurdeform/mac-${{matrix.maya}}/plug-ins + touch artifacts/blurdeform.mod + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: blurdeform + path: | + artifacts/blurdeform/mac-${{matrix.maya}}/plug-ins/blurPostDeform.bundle + artifacts/blurdeform.mod maya-linux: runs-on: ubuntu-latest @@ -142,6 +191,8 @@ jobs: year: "2022" - maya: "2023" year: "2023" + - maya: "2024" + year: "2024" steps: - name: Checkout code @@ -175,7 +226,7 @@ jobs: build_modfile: name: Package release - needs: [maya-win, maya-linux, maya-macos] + needs: [maya-win, maya-linux, maya-macos-11, maya-macos-12] runs-on: ubuntu-latest steps: @@ -218,7 +269,7 @@ jobs: # upload_release: name: Upload release - needs: [maya-win, maya-linux, maya-macos, build_modfile] + needs: [maya-win, maya-linux, maya-macos-11, maya-macos-12, build_modfile] runs-on: ubuntu-latest # Only run on e.g. v0.1.0