diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 524fbf1..14e04e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,16 +14,16 @@ env: jobs: # # Windows - # + # # __ # |\__/ \ # | | # | __ | # \__/ \| # - # + # maya-win: - runs-on: windows-2019 + runs-on: windows-latest strategy: # Without this, all containers stop if any fail @@ -33,16 +33,12 @@ jobs: matrix: include: - - maya: "2018" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2018/Autodesk_Maya_2018_7_Update_DEVKIT_Windows.zip" - - maya: "2019" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2019/Autodesk_Maya_2019_3_Update_DEVKIT_Windows.zip" - - maya: "2020" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2020/Autodesk_Maya_2020_4_Update_DEVKIT_Windows.zip" - maya: "2022" - 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" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_5_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" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2023/Autodesk_Maya_2023_3_Update_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_2_Update_DEVKIT_Windows.zip" steps: - name: Checkout code @@ -75,24 +71,21 @@ jobs: path: | artifacts/plug-ins/TwistSpline.mll - maya-macos: - runs-on: macos-10.15 + # Splitting mac-os into two different steps, as 2024 was made compatible with new arm architecture. + maya-macos-x86_64: + runs-on: macos-latest strategy: fail-fast: false matrix: include: - - maya: "2018" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2018/Autodesk_Maya_2018_7_Update_DEVKIT_Mac.dmg" - - maya: "2019" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2019/Autodesk_Maya_2019_3_Update_DEVKIT_Mac.dmg" - - maya: "2020" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2020/Autodesk_Maya_2020_4_Update_DEVKIT_Mac.dmg" - maya: "2022" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_3_Update_DEVKIT_Mac.dmg" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_5_Update_DEVKIT_Mac.dmg" - maya: "2023" - devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2023/Autodesk_Maya_2023_DEVKIT_Mac.dmg" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2023/Autodesk_Maya_2023_3_Update_DEVKIT_Mac.dmg" + - maya: "2024" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2024/Autodesk_Maya_2024_2_Update_DEVKIT_Mac.dmg" steps: - name: Checkout code @@ -103,15 +96,15 @@ jobs: - name: Install devkit run: | curl -o devkit.dmg ${{matrix.devkit}} - 7z x devkit.dmg + hdiutil attach devkit.dmg - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '10.3' + xcode-version: '13.4' - 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" + cmake -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION=${{matrix.maya}} -DMAYA_DEVKIT_BASE="/Volumes/devkitBase" - name: Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} @@ -124,29 +117,69 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - name: mac-${{matrix.maya}} + name: mac-${{matrix.maya}}-x86_64 + path: | + artifacts/plug-ins/TwistSpline.bundle + + maya-macos-arm64: + runs-on: macos-latest + + 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_2_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}} + hdiutil attach devkit.dmg + + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '13.4' + + - name: Configure CMake + run: | + cmake -G Xcode -DCMAKE_OSX_ARCHITECTURES=arm64 -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION=${{matrix.maya}} -DMAYA_DEVKIT_BASE="/Volumes/devkitBase" + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Repath Artifacts + run: | + mkdir -p artifacts/plug-ins + cp ./build/${{env.BUILD_TYPE}}/TwistSpline.bundle artifacts/plug-ins + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: mac-${{matrix.maya}}-arm64 path: | artifacts/plug-ins/TwistSpline.bundle maya-linux: runs-on: ubuntu-latest - container: scottenglert/maya-build:${{matrix.maya}} strategy: fail-fast: false matrix: include: - - maya: "2018.7" - year: "2018" - - maya: "2019.3" - year: "2019" - - maya: "2020.4" - year: "2020" - - maya: "2022.3" - year: "2022" + - maya: "2022" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2022/Autodesk_Maya_2022_5_Update_DEVKIT_Linux.tgz" - maya: "2023" - year: "2023" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2023/Autodesk_Maya_2023_3_Update_DEVKIT_Linux.tgz" + - maya: "2024" + devkit: "https://autodesk-adn-transfer.s3-us-west-2.amazonaws.com/ADN+Extranet/M%26E/Maya/devkit+2024/Autodesk_Maya_2024_2_Update_DEVKIT_Linux.tgz" steps: - name: Checkout code @@ -154,24 +187,30 @@ jobs: with: submodules: true - - name: Configure CMake + - name: Install OpenGL libraries run: | - mkdir build - cd build - cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION=${{matrix.maya}} -DMAYA_DEVKIT_BASE="/usr/autodesk/devkitBase" .. + sudo apt install libglu1-mesa-dev + + - name: Install devkit + run: | + curl -o devkit.tgz ${{matrix.devkit}} + tar xvzf devkit.tgz + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMAYA_VERSION="${{matrix.maya}}" -DMAYA_DEVKIT_BASE="$PWD/devkitBase" - name: Build - run: cmake --build ./build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - name: Repath Artifacts run: | mkdir -p artifacts/plug-ins - cp ./build/TwistSpline.so artifacts/plug-ins + cp "./build/TwistSpline.so" "artifacts/plug-ins" - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - name: linux-${{matrix.year}} + name: linux-${{matrix.maya}} path: | artifacts/plug-ins/TwistSpline.so @@ -189,7 +228,7 @@ jobs: # upload_release: name: Upload release - needs: [maya-win, maya-linux, maya-macos] + needs: [maya-win, maya-linux, maya-macos-x86_64, maya-macos-arm64] runs-on: ubuntu-latest # Only run on e.g. v0.1.0 diff --git a/src/twistSplineNode.cpp b/src/twistSplineNode.cpp index 5b5e43c..d9d432c 100644 --- a/src/twistSplineNode.cpp +++ b/src/twistSplineNode.cpp @@ -44,6 +44,7 @@ SOFTWARE. #include #include +#include #include "twistSpline.h" #include "twistSplineData.h"