-
Notifications
You must be signed in to change notification settings - Fork 43
69 lines (55 loc) · 1.73 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: build
on:
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
maya-win:
runs-on: windows-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_Windows.zip"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Install devkit Windows
run: |
Invoke-WebRequest -Uri ${{matrix.devkit}} -OutFile "$pwd/devkit.zip"
Expand-Archive -LiteralPath devkit.zip -DestinationPath $pwd
- name: Install ninja Windows
run: choco install ninja
- name: Install meson Windows
uses: actions/setup-python@v5
with:
python-version: '3.10'
run: pip install meson
- name: Meson Setup Windows
run: >
meson setup
-Dmaya:maya_version="${{matrix.maya}}"
-Dmaya:maya_devkit_base="$pwd/devkitBase"
--buildtype debugoptimized
--vsenv
--backend ninja
${{github.workspace}}/build
.
- name: Compile
run: |
meson compile -C ${{github.workspace}}/build
meson install -C ${{github.workspace}}/build
- name: Repath Artifacts Windows
run: |
mkdir artifacts/plug-ins
Copy-Item ${{github.workspace}}/build/TwistSpline.mll -Destination "artifacts/plug-ins"
- name: Upload Artifacts Windows
uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.maya}}
path: |
artifacts/plug-ins/TwistSpline.mll