diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09245a16..317c6814 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,7 @@ env: CPP_SDK_URL: "https://github.com/DolbyIO/comms-sdk-cpp/releases/download" PLUGIN_SOURCE_DIR: "DolbyIO" PLUGIN_BUILD_DIR: "Build/DolbyIO" + BUILD_ARGS_COMMON: "BuildPlugin -Rocket -StrictIncludes -Plugin=\"$(pwd)/DolbyIO/DolbyIO.uplugin\" -Package=\"$(pwd)/Build/DolbyIO\"" GH_TOKEN: ${{ github.token }} RETENTION: 7 @@ -41,18 +42,16 @@ jobs: - name: Build plugin env: - 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" + BUILD_COMMAND: "C:/Program` Files/Epic` Games/UE_${{ matrix.version }}/Engine/Build/BatchFiles/RunUAT.bat" + BUILD_ARGS_PLATFORM: "-TargetPlatforms=Win64" run: | if (${{ matrix.version }} -eq "4.27") { - $UAT = "${{ env.BUILD_COMMAND }}" - & $UAT ${{ env.BUILD_ARGS }} -VS2019 + ${{ env.BUILD_COMMAND }} ${{ env.BUILD_ARGS_COMMON }} ${{ env.BUILD_ARGS_PLATFORM }} -VS2019 } else { - $UAT = "${{ env.BUILD_COMMAND }}" - & $UAT ${{ env.BUILD_ARGS }} + ${{ env.BUILD_COMMAND }} ${{ env.BUILD_ARGS_COMMON }} ${{ env.BUILD_ARGS_PLATFORM }} } - name: Sign plugin