From 6ea914d22a651cb077cd522cf59404f4987f6108 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sun, 21 Jan 2024 01:40:54 -0800 Subject: [PATCH] Add missing parameter, add quotes around variables, bump action versions --- .github/workflows/build-tests-mac.yml | 5 +++-- .github/workflows/build-tests-ubuntu.yml | 7 ++++-- .github/workflows/build-tests-windows.yml | 7 ++++-- dist/platforms/windows/build.ps1 | 27 ++++++++++++----------- 4 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-tests-mac.yml b/.github/workflows/build-tests-mac.yml index e6ba3fbf..73b01026 100644 --- a/.github/workflows/build-tests-mac.yml +++ b/.github/workflows/build-tests-mac.yml @@ -37,7 +37,7 @@ jobs: ########################### # Cache # ########################### - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ${{ matrix.projectPath }}/Library key: Library-${{ matrix.projectPath }}-macos-${{ matrix.targetPlatform }} @@ -61,6 +61,7 @@ jobs: UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -71,7 +72,7 @@ jobs: ########################### # Upload # ########################### - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: Build MacOS (${{ matrix.unityVersion }}) path: build diff --git a/.github/workflows/build-tests-ubuntu.yml b/.github/workflows/build-tests-ubuntu.yml index 830d1921..bbd5e823 100644 --- a/.github/workflows/build-tests-ubuntu.yml +++ b/.github/workflows/build-tests-ubuntu.yml @@ -69,7 +69,7 @@ jobs: ########################### # Cache # ########################### - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ${{ matrix.projectPath }}/Library key: Library-${{ matrix.projectPath }}-ubuntu-${{ matrix.targetPlatform }} @@ -88,6 +88,7 @@ jobs: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -108,6 +109,7 @@ jobs: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -128,6 +130,7 @@ jobs: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -138,7 +141,7 @@ jobs: ########################### # Upload # ########################### - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: Build Ubuntu (${{ matrix.unityVersion }}) path: build diff --git a/.github/workflows/build-tests-windows.yml b/.github/workflows/build-tests-windows.yml index da338903..40b00840 100644 --- a/.github/workflows/build-tests-windows.yml +++ b/.github/workflows/build-tests-windows.yml @@ -39,7 +39,7 @@ jobs: ########################### # Cache # ########################### - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ${{ matrix.projectPath }}/Library key: Library-${{ matrix.projectPath }}-windows-${{ matrix.targetPlatform }} @@ -67,6 +67,7 @@ jobs: UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -90,6 +91,7 @@ jobs: UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -112,6 +114,7 @@ jobs: UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: + buildName: 'GameCI Test Build' projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} @@ -122,7 +125,7 @@ jobs: ########################### # Upload # ########################### - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: Build Windows (${{ matrix.unityVersion }}) path: build diff --git a/dist/platforms/windows/build.ps1 b/dist/platforms/windows/build.ps1 index 5622fae6..52b16726 100644 --- a/dist/platforms/windows/build.ps1 +++ b/dist/platforms/windows/build.ps1 @@ -137,19 +137,20 @@ $unityArgs = @( "-batchmode", "-nographics", "-silent-crashes", - "-projectPath", $Env:UNITY_PROJECT_PATH, - "-executeMethod", $Env:BUILD_METHOD, - "-buildTarget", $Env:BUILD_TARGET, - "-customBuildTarget", $Env:BUILD_TARGET, - "-customBuildPath", $Env:CUSTOM_BUILD_PATH, - "-buildVersion", $Env:VERSION, - "-androidVersionCode", $Env:ANDROID_VERSION_CODE, - "-androidKeystorePass", $Env:ANDROID_KEYSTORE_PASS, - "-androidKeyaliasName", $Env:ANDROID_KEYALIAS_NAME, - "-androidKeyaliasPass", $Env:ANDROID_KEYALIAS_PASS, - "-androidTargetSdkVersion", $Env:ANDROID_TARGET_SDK_VERSION, - "-androidExportType", $Env:ANDROID_EXPORT_TYPE, - "-androidSymbolType", $Env:ANDROID_SYMBOL_TYPE, + "-customBuildName", "$Env:BUILD_NAME", + "-projectPath", "$Env:UNITY_PROJECT_PATH", + "-executeMethod", "$Env:BUILD_METHOD", + "-buildTarget", "$Env:BUILD_TARGET", + "-customBuildTarget", "$Env:BUILD_TARGET", + "-customBuildPath", "$Env:CUSTOM_BUILD_PATH", + "-buildVersion", "$Env:VERSION", + "-androidVersionCode", "$Env:ANDROID_VERSION_CODE", + "-androidKeystorePass", "$Env:ANDROID_KEYSTORE_PASS", + "-androidKeyaliasName", "$Env:ANDROID_KEYALIAS_NAME", + "-androidKeyaliasPass", "$Env:ANDROID_KEYALIAS_PASS", + "-androidTargetSdkVersion", "$Env:ANDROID_TARGET_SDK_VERSION", + "-androidExportType", "$Env:ANDROID_EXPORT_TYPE", + "-androidSymbolType", "$Env:ANDROID_SYMBOL_TYPE", "-logfile", "-" ) + $customParametersArray