This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
140 lines (133 loc) · 5.45 KB
/
build.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
name: Build Unreal Plugin
on:
push:
workflow_dispatch:
env:
CPP_SDK_TAG: "2.5.5"
CPP_SDK_DESTINATION: "DolbyIO"
CPP_SDK_URL: "https://github.com/DolbyIO/comms-sdk-cpp/releases/download"
UNREAL_PLUGIN_OUTPUT: "Build/DolbyIO"
RETENTION: 7
jobs:
build-macos:
strategy:
fail-fast: false
matrix:
version: ["4.27", "5.2"]
runs-on: ["self-hosted", "X64", "macOS"]
env:
BUILD_PLATFORM: 'macos64'
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Download C++ SDK release asset
uses: ./.github/actions/download_cpp/bash
with:
url: ${{ env.CPP_SDK_URL }}
tag: ${{ env.CPP_SDK_TAG }}
asset_name: "cppsdk-${{ env.CPP_SDK_TAG }}-${{ env.BUILD_PLATFORM }}-universal.zip"
- name: Remove symlinks from cpp sdk libs
env:
LIB_PATH_UNIVERSAL: "${{ github.workspace }}/${{ env.CPP_SDK_DESTINATION }}/sdk-release/lib"
run: |
echo "Removing symlinks from ${LIB_PATH_UNIVERSAL}"
find ${LIB_PATH_UNIVERSAL} -type l -delete
- name: Run Build
run: |
/Users/Shared/Epic\ Games/UE_${{ matrix.version }}/Engine/Build/BatchFiles/RunUAT.sh BuildPlugin \
-Rocket \
-Plugin=$(pwd)/DolbyIO/DolbyIO.uplugin \
-TargetPlatforms=Mac \
-Package=$(pwd)/${{ env.UNREAL_PLUGIN_OUTPUT }} \
-StrictIncludes \
-Architecture_Mac=x64+arm64
- name: Sign DolbyIO Unreal Plugin
env:
DOLBYIO_KEYCHAIN_PASSWORD: ${{ secrets.VOXEET_KEYCHAIN_PASSWORD }}
uses: ./.github/actions/sign/mac
with:
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
platform: 'macos'
- name: Archive DolbyIO Unreal Plugin
uses: actions/upload-artifact@v3
with:
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
retention-days: ${{ env.RETENTION }}
build-windows:
strategy:
fail-fast: false
matrix:
version: ["4.27", "5.2"]
runs-on: ["self-hosted", "X64", "Windows"]
env:
BUILD_PLATFORM: 'windows64'
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Download C++ SDK release asset
id: download_cpp
uses: ./.github/actions/download_cpp/powershell
with:
url: ${{ env.CPP_SDK_URL }}
tag: ${{ env.CPP_SDK_TAG }}
asset_name: "cppsdk-${{ env.CPP_SDK_TAG }}-${{ env.BUILD_PLATFORM }}.zip"
- name: Run Build
run: |
Write-Output "UE_${{ matrix.version }}"
$UERunUAT = "C:\\Program Files\\Epic Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat"
& $UERunUAT BuildPlugin -Rocket -Plugin="$(pwd)\\DolbyIO\\DolbyIO.uplugin" -TargetPlatforms=Win64 -Package="$(pwd)\\Build\\DolbyIO" -StrictIncludes -VS2019 -NoTurnKeyVariables
- name: Sign DolbyIO Unreal Plugin
env:
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
uses: ./.github/actions/sign/win
with:
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
platform: 'windows'
- name: Archive DolbyIO Plugin
uses: actions/upload-artifact@v3
with:
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
retention-days: ${{ env.RETENTION }}
build-linux:
strategy:
fail-fast: false
matrix:
version: ["4.27", "5.2"]
runs-on: ["self-hosted", "X64", "Windows"]
env:
BUILD_PLATFORM: 'linux64'
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Download C++ SDK release asset
id: download_cpp
uses: ./.github/actions/download_cpp/powershell
with:
url: ${{ env.CPP_SDK_URL }}
tag: ${{ env.CPP_SDK_TAG }}
asset_name: "cppsdk-${{ env.CPP_SDK_TAG }}-ubuntu-20.04-clang10-libc++10.zip"
- name: Unlink cpp sdk libs
env:
LIB_PATH_UBUNTU: "${{ github.workspace }}\\${{ env.CPP_SDK_DESTINATION }}\\sdk-release-ubuntu-20.04-clang10-libc++10\\lib"
run: |
Move-Item -Force "${{ env.LIB_PATH_UBUNTU }}\\libavcodec.so.59.33.100" "${{ env.LIB_PATH_UBUNTU }}\\libavcodec.so.59"
Move-Item -Force "${{ env.LIB_PATH_UBUNTU }}\\libavformat.so.59.25.100" "${{ env.LIB_PATH_UBUNTU }}\\libavformat.so.59"
Move-Item -Force "${{ env.LIB_PATH_UBUNTU }}\\libavutil.so.57.27.100" "${{ env.LIB_PATH_UBUNTU }}\\libavutil.so.57"
- name: Run Build
run: |
if(${{ matrix.version }} -eq "4.27"){
$env:LINUX_MULTIARCH_ROOT="C:\\UnrealToolchains\\v19_clang-11.0.1-centos7"
} else {
$env:LINUX_MULTIARCH_ROOT="C:\\UnrealToolchains\\v21_clang-15.0.1-centos7"
}
Write-Output "UE_${{ matrix.version }}"
$UERunUAT = "C:\\Program Files\\Epic Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat"
& $UERunUAT BuildPlugin -Rocket -Plugin="$(pwd)\\DolbyIO\\DolbyIO.uplugin" -TargetPlatforms=Linux -Package="$(pwd)\\Build\\DolbyIO" -StrictIncludes -NoHostPlatform -NoTurnKeyVariables
- name: Archive DolbyIO Plugin
uses: actions/upload-artifact@v3
with:
name: DolbyIO_UnrealPlugin_${{ matrix.version }}_${{ env.BUILD_PLATFORM }}
path: ${{ env.UNREAL_PLUGIN_OUTPUT }}
retention-days: ${{ env.RETENTION }}