-
Notifications
You must be signed in to change notification settings - Fork 8
159 lines (150 loc) · 5.05 KB
/
package.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: Package
on:
pull_request:
branches: [ main ]
paths-ignore:
- '**/README.md'
- '**/gitignore'
- '**/LICENSE.md'
- '.github/workflows/release.yml'
workflow_call:
workflow_dispatch:
jobs:
build-ndk-win:
uses: ./.github/workflows/build-ndk-win.yml
build-ndk-mac:
uses: ./.github/workflows/build-ndk-mac.yml
build-ndk-ios:
uses: ./.github/workflows/build-ndk-ios.yml
build-ndk-android:
uses: ./.github/workflows/build-ndk-android.yml
build-win-50:
needs: [ build-ndk-win ]
uses: ./.github/workflows/build-win-50.yml
build-win-427:
needs: [ build-ndk-win ]
uses: ./.github/workflows/build-win-427.yml
build-android-50:
needs: [ build-ndk-android, build-ndk-win ]
uses: ./.github/workflows/build-android-50.yml
build-mac-50:
needs: [ build-ndk-mac ]
uses: ./.github/workflows/build-mac-50.yml
build-ios-50:
needs: [ build-ndk-ios, build-ndk-mac ]
uses: ./.github/workflows/build-ios-50.yml
upload-ndk-win:
runs-on: [ self-hosted, Windows, X64, w10-1344 ]
needs: [ build-ndk-win ]
steps:
- uses: actions/checkout@v2
- name: git-update-dependecies
run: git submodule update --init
- name: Find NDK SHA
run: |
$INWORLD_NDK_SHA=(git submodule status).Trim().Split()[0]
echo $INWORLD_NDK_SHA
Add-Content -Path ${env:GITHUB_ENV} -Value "INWORLD_NDK_SHA=$INWORLD_NDK_SHA"
- uses: actions/cache/restore@v3
id: ndk-cache-win64
with:
path: InworldAI\inworld-ndk\build\Package
key: ${{ runner.OS }}-ndk-cache-Win64-${{ env.INWORLD_NDK_SHA }}
fail-on-cache-miss: true
- uses: actions/upload-artifact@v3
with:
name: NDK-Source
path: |
InworldAI\inworld-ndk\build\Package
!InworldAI\inworld-ndk\build\Package\lib
- uses: actions/upload-artifact@v3
with:
name: Win-NDK-lib
path: InworldAI\inworld-ndk\build\Package\lib\Win64
upload-ndk-mac:
runs-on: [ self-hosted, macOS, ARM64, m1-1317 ]
needs: [ build-ndk-mac ]
steps:
- uses: actions/checkout@v2
- name: git-update-dependecies
run: git submodule update --init
- name: Find NDK SHA
run: |
INWORLD_NDK_SHA=$(git submodule status | cut -d " " -f 2)
echo $INWORLD_NDK_SHA
echo "INWORLD_NDK_SHA=$INWORLD_NDK_SHA" >> $GITHUB_ENV
- uses: actions/cache/restore@v3
id: ndk-cache-mac
with:
path: InworldAI/inworld-ndk/build/Package
key: ${{ runner.OS }}-ndk-cache-Mac-${{ env.INWORLD_NDK_SHA }}
fail-on-cache-miss: true
- uses: actions/upload-artifact@v3
with:
name: Mac-NDK-lib
path: InworldAI/inworld-ndk/build/Package/lib/Mac
upload-ndk-ios:
runs-on: [ self-hosted, macOS, ARM64, m1-1317 ]
needs: [ build-ndk-ios ]
steps:
- uses: actions/checkout@v2
- name: git-update-dependecies
run: git submodule update --init
- name: Find NDK SHA
run: |
INWORLD_NDK_SHA=$(git submodule status | cut -d " " -f 2)
echo $INWORLD_NDK_SHA
echo "INWORLD_NDK_SHA=$INWORLD_NDK_SHA" >> $GITHUB_ENV
- uses: actions/cache/restore@v3
id: ndk-cache-ios
with:
path: InworldAI/inworld-ndk/build/Package
key: ${{ runner.OS }}-ndk-cache-iOS-${{ env.INWORLD_NDK_SHA }}
fail-on-cache-miss: true
- uses: actions/upload-artifact@v3
with:
name: iOS-NDK-lib
path: InworldAI/inworld-ndk/build/Package/lib/iOS
# upload-ndk-android:
# already uploaded in ./.github/workflows/build-android-50.yml
package:
runs-on: ubuntu-latest
needs: [ build-win-50, build-win-427, build-android-50, build-mac-50, build-ios-50, upload-ndk-win, upload-ndk-mac, upload-ndk-ios ]
steps:
- uses: actions/checkout@v2
- name: git-update-dependecies
run: git submodule update --init --recursive
- uses: actions/download-artifact@v3
with:
name: NDK-Source
path: InworldAI/Source/ThirdParty/InworldAINDKLibrary
- uses: actions/download-artifact@v3
with:
name: Win-NDK-lib
path: InworldAI/Source/ThirdParty/InworldAINDKLibrary/lib/Win64
- uses: actions/download-artifact@v3
with:
name: Mac-NDK-lib
path: InworldAI/Source/ThirdParty/InworldAINDKLibrary/lib/Mac
- uses: actions/download-artifact@v3
with:
name: iOS-NDK-lib
path: InworldAI/Source/ThirdParty/InworldAINDKLibrary/lib/iOS
- uses: actions/download-artifact@v3
with:
name: Android-NDK-lib
path: InworldAI/Source/ThirdParty/InworldAINDKLibrary/lib/Android
- uses: actions/upload-artifact@v3
with:
name: inworld-unreal-sdk
path: |
InworldAI
!InworldAI/inworld-ndk
- uses: actions/upload-artifact@v3
with:
name: inworld-unreal-sdk-innequin
path: InworldInnequin
- uses: actions/upload-artifact@v3
with:
name: inworld-unreal-sdk-metahuman
path: InworldMetahuman