mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
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:
parent
888a2a97f1
commit
e8e39d7085
1
.github/workflows/build-tests-mac.yml
vendored
1
.github/workflows/build-tests-mac.yml
vendored
@ -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:
|
||||||
###########################
|
###########################
|
||||||
|
1
dist/platforms/mac/steps/activate.sh
vendored
1
dist/platforms/mac/steps/activate.sh
vendored
@ -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
|
||||||
|
|
||||||
|
1
dist/platforms/ubuntu/steps/activate.sh
vendored
1
dist/platforms/ubuntu/steps/activate.sh
vendored
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
5
dist/platforms/windows/activate.ps1
vendored
5
dist/platforms/windows/activate.ps1
vendored
@ -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."
|
||||||
|
}
|
||||||
|
@ -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', () => {
|
||||||
|
1
test-project/.gitignore
vendored
1
test-project/.gitignore
vendored
@ -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*
|
||||||
|
@ -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: []
|
||||||
|
@ -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: []
|
||||||
|
Loading…
Reference in New Issue
Block a user