From ce7710b6f89a885a94ca65f34755f22796141cea Mon Sep 17 00:00:00 2001 From: Jakub Audykowicz Date: Mon, 11 Sep 2023 11:58:09 +0200 Subject: [PATCH] Use -VS2019 when packaging only for UE4 --- .github/workflows/build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad99d82f..d71893cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,10 +41,17 @@ jobs: - name: Build plugin env: - BUILD_ARGS: "BuildPlugin -Rocket -StrictIncludes -Plugin=\"$(pwd)\\DolbyIO\\DolbyIO.uplugin\" -Package=\"$(pwd)\\Build\\DolbyIO\" -TargetPlatforms=Win64 -VS2019" + BUILD_COMMAND: "C:\\Program\ Files\\Epic\ Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat" + BUILD_ARGS: "BuildPlugin -Rocket -StrictIncludes -Plugin=\"$(pwd)\\DolbyIO\\DolbyIO.uplugin\" -Package=\"$(pwd)\\Build\\DolbyIO\" -TargetPlatforms=Win64" run: | - $UAT = "C:\\Program Files\\Epic Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat" - & $UAT ${{ env.BUILD_ARGS }} + if (${{ matrix.version }} -eq "4.27") + { + ${{ env.BUILD_COMMAND }} ${{ env.BUILD_ARGS }} -VS2019 + } + else + { + ${{ env.BUILD_COMMAND }} ${{ env.BUILD_ARGS }} + } - name: Sign plugin env: @@ -74,6 +81,7 @@ jobs: build-macos: + if: false strategy: fail-fast: false matrix: @@ -140,6 +148,7 @@ jobs: build-linux: + if: false strategy: fail-fast: false matrix: @@ -172,9 +181,12 @@ jobs: env: BUILD_ARGS: "BuildPlugin -Rocket -StrictIncludes -Plugin=\"$(pwd)\\DolbyIO\\DolbyIO.uplugin\" -Package=\"$(pwd)\\Build\\DolbyIO\" -TargetPlatforms=Linux -NoHostPlatform" run: | - if(${{ matrix.version }} -eq "4.27"){ + if (${{ matrix.version }} -eq "4.27") + { $env:LINUX_MULTIARCH_ROOT="C:\\UnrealToolchains\\v19_clang-11.0.1-centos7" - } else { + } + else + { $env:LINUX_MULTIARCH_ROOT="C:\\UnrealToolchains\\v21_clang-15.0.1-centos7" } $UAT = "C:\\Program Files\\Epic Games\\UE_${{ matrix.version }}\\Engine\\Build\\BatchFiles\\RunUAT.bat"