Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Merge pull request #351 from DolbyIO/get_metadata #1385

Merge pull request #351 from DolbyIO/get_metadata

Merge pull request #351 from DolbyIO/get_metadata #1385

Workflow file for this run

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 }}