Skip to content

Commit

Permalink
Add maya 2024.1 to the build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tbttfox committed Oct 18, 2023
1 parent 7355da8 commit 80f712f
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -142,6 +191,8 @@ jobs:
year: "2022"
- maya: "2023"
year: "2023"
- maya: "2024"
year: "2024"

steps:
- name: Checkout code
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 80f712f

Please sign in to comment.