Build iOS test on macos to verify burst functionality. Add annotation for license activation error. Fix unity version test. Remove minification from android

This commit is contained in:
Andrew Kahr 2023-11-07 21:13:28 -08:00
parent 888a2a97f1
commit e8e39d7085
9 changed files with 158 additions and 147 deletions

View File

@ -23,6 +23,7 @@ jobs:
- 2023.1.17f1 - 2023.1.17f1
targetPlatform: targetPlatform:
- StandaloneOSX # Build a MacOS executable - StandaloneOSX # Build a MacOS executable
- iOS # Build an iOS executable
steps: steps:
########################### ###########################

View File

@ -30,6 +30,7 @@ else
# Activation failed so exit with the code from the license verification step # Activation failed so exit with the code from the license verification step
echo "Unclassified error occured while trying to activate license." echo "Unclassified error occured while trying to activate license."
echo "Exit code was: $UNITY_EXIT_CODE" echo "Exit code was: $UNITY_EXIT_CODE"
echo "::error ::There was an error while trying to activate the Unity license."
exit $UNITY_EXIT_CODE exit $UNITY_EXIT_CODE
fi fi

View File

@ -65,6 +65,7 @@ else
# Activation failed so exit with the code from the license verification step # Activation failed so exit with the code from the license verification step
echo "Unclassified error occured while trying to activate license." echo "Unclassified error occured while trying to activate license."
echo "Exit code was: $UNITY_EXIT_CODE" echo "Exit code was: $UNITY_EXIT_CODE"
echo "::error ::There was an error while trying to activate the Unity license."
exit $UNITY_EXIT_CODE exit $UNITY_EXIT_CODE
fi fi

View File

@ -21,6 +21,8 @@ elif [[ -n "$UNITY_SERIAL" ]]; then
-logFile /dev/stdout \ -logFile /dev/stdout \
-quit \ -quit \
-returnlicense \ -returnlicense \
-username "$UNITY_EMAIL" \
-password "$UNITY_PASSWORD" \
-projectPath "/BlankProject" -projectPath "/BlankProject"
fi fi

View File

@ -12,3 +12,8 @@ Write-Output ""
-serial $Env:UNITY_SERIAL ` -serial $Env:UNITY_SERIAL `
-projectPath "c:/BlankProject" ` -projectPath "c:/BlankProject" `
-logfile - | Out-Host -logfile - | Out-Host
if(-not(Test-path "C:/ProgramData/Unity/Unity_lic.ulf" -PathType leaf))
{
Write-Output "::error ::There was an error while trying to activate the Unity license."
}

View File

@ -7,9 +7,9 @@ describe('Unity Versioning', () => {
}); });
it('parses from ProjectVersion.txt', () => { it('parses from ProjectVersion.txt', () => {
const projectVersionContents = `m_EditorVersion: 2019.2.11f1 const projectVersionContents = `m_EditorVersion: 2021.3.4f1
m_EditorVersionWithRevision: 2019.2.11f1 (5f859a4cfee5)`; m_EditorVersionWithRevision: 2021.3.4f1 (cb45f9cae8b7)`;
expect(UnityVersioning.parse(projectVersionContents)).toBe('2019.2.11f1'); expect(UnityVersioning.parse(projectVersionContents)).toBe('2021.3.4f1');
}); });
}); });
@ -19,13 +19,13 @@ describe('Unity Versioning', () => {
}); });
it('reads from test-project', () => { it('reads from test-project', () => {
expect(UnityVersioning.read('./test-project')).toBe('2019.2.11f1'); expect(UnityVersioning.read('./test-project')).toBe('2021.3.4f1');
}); });
}); });
describe('determineUnityVersion', () => { describe('determineUnityVersion', () => {
it('defaults to parsed version', () => { it('defaults to parsed version', () => {
expect(UnityVersioning.determineUnityVersion('./test-project', 'auto')).toBe('2019.2.11f1'); expect(UnityVersioning.determineUnityVersion('./test-project', 'auto')).toBe('2021.3.4f1');
}); });
it('use specified unityVersion', () => { it('use specified unityVersion', () => {

View File

@ -4,6 +4,7 @@
[Bb]uild/ [Bb]uild/
[Bb]uilds/ [Bb]uilds/
[Ll]ogs/ [Ll]ogs/
UserSettings/
# Uncomment this line if you wish to ignore the asset store tools plugin # Uncomment this line if you wish to ignore the asset store tools plugin
# [Aa]ssets/AssetStoreTools* # [Aa]ssets/AssetStoreTools*

View File

@ -174,7 +174,7 @@ PlayerSettings:
ForceInternetPermission: 0 ForceInternetPermission: 0
ForceSDCardPermission: 0 ForceSDCardPermission: 0
CreateWallpaper: 0 CreateWallpaper: 0
APKExpansionFiles: 1 APKExpansionFiles: 0
keepLoadedShadersAlive: 0 keepLoadedShadersAlive: 0
StripUnusedMeshComponents: 1 StripUnusedMeshComponents: 1
VertexChannelCompressionMask: 4054 VertexChannelCompressionMask: 4054
@ -267,8 +267,8 @@ PlayerSettings:
androidGamepadSupportLevel: 0 androidGamepadSupportLevel: 0
chromeosInputEmulation: 1 chromeosInputEmulation: 1
AndroidMinifyWithR8: 0 AndroidMinifyWithR8: 0
AndroidMinifyRelease: 1 AndroidMinifyRelease: 0
AndroidMinifyDebug: 1 AndroidMinifyDebug: 0
AndroidValidateAppBundleSize: 1 AndroidValidateAppBundleSize: 1
AndroidAppBundleSizeToValidate: 150 AndroidAppBundleSizeToValidate: 150
m_BuildTargetIcons: [] m_BuildTargetIcons: []

View File

@ -174,7 +174,7 @@ PlayerSettings:
ForceInternetPermission: 0 ForceInternetPermission: 0
ForceSDCardPermission: 0 ForceSDCardPermission: 0
CreateWallpaper: 0 CreateWallpaper: 0
APKExpansionFiles: 1 APKExpansionFiles: 0
keepLoadedShadersAlive: 0 keepLoadedShadersAlive: 0
StripUnusedMeshComponents: 1 StripUnusedMeshComponents: 1
VertexChannelCompressionMask: 4054 VertexChannelCompressionMask: 4054
@ -267,8 +267,8 @@ PlayerSettings:
androidGamepadSupportLevel: 0 androidGamepadSupportLevel: 0
chromeosInputEmulation: 1 chromeosInputEmulation: 1
AndroidMinifyWithR8: 0 AndroidMinifyWithR8: 0
AndroidMinifyRelease: 1 AndroidMinifyRelease: 0
AndroidMinifyDebug: 1 AndroidMinifyDebug: 0
AndroidValidateAppBundleSize: 1 AndroidValidateAppBundleSize: 1
AndroidAppBundleSizeToValidate: 150 AndroidAppBundleSizeToValidate: 150
m_BuildTargetIcons: [] m_BuildTargetIcons: []