-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 2023.2-urp
# Conflicts: # ProjectSettings/ProjectSettings.asset
- Loading branch information
Showing
12 changed files
with
166 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
# This script creates tags for the given unity version to trigger the release workflow | ||
# example usage | ||
# sh add-tags.sh "6000.0.0f1" -> Creates tags for non-urp version | ||
# sh add-tags.sh "6000.0.0f1" "true" -> Creates tags for urp version | ||
|
||
# Input parameters | ||
UNITY_VERSION=$1 | ||
IS_URP=${2:-"false"} | ||
echo "Running add_tags.sh with UNITY_VERSION: $UNITY_VERSION, IS_URP: $IS_URP" | ||
|
||
# Extract the value before the first dot as an integer | ||
MAJOR_VERSION=$(echo $UNITY_VERSION | cut -d. -f1) | ||
BRANCH_NAME=${GITHUB_REF#refs/heads/} | ||
|
||
TAG_PREFIX=$UNITY_VERSION | ||
if [[ "$IS_URP" == "true" ]] | ||
then | ||
TAG_PREFIX=$UNITY_VERSION-urp | ||
fi | ||
|
||
if [[ "$MAJOR_VERSION" -lt "2023" ]] | ||
then | ||
git tag -a -f $TAG_PREFIX-minsize-webgl1 -m "[Automated workflow] Created by upgrade-unity" | ||
git tag -a -f $TAG_PREFIX-webgl1 -m "[Automated workflow] Created by upgrade-unity" | ||
else | ||
git tag -a -f $TAG_PREFIX-minsize-webgl2 -m "[Automated workflow] Created by upgrade-unity" | ||
fi | ||
# Push tags in between - pushing more than 3 tags won't trigger tag workflows | ||
git push origin -f --tags | ||
|
||
git tag -a -f $TAG_PREFIX-webgl2 -m "[Automated workflow] Created by upgrade-unity" | ||
git tag -a -f $TAG_PREFIX-webgl2-debug -m "[Automated workflow] Created by upgrade-unity" | ||
|
||
if [[ "$MAJOR_VERSION" -ge "6000" ]] | ||
then | ||
git tag -a -f $TAG_PREFIX-webgpu -m "[Automated workflow] Created by upgrade-unity" | ||
fi | ||
|
||
git push origin -f --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
// <copyright file="BuildScript.cs"> | ||
// Copyright (c) 2023 Johannes Deml. All rights reserved. | ||
// </copyright> | ||
// <author> | ||
// Johannes Deml | ||
// [email protected] | ||
// </author> | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
|
||
namespace UnityBuilderAction | ||
{ | ||
/// <summary> | ||
/// Code optimization settings for the build | ||
/// See also <see href="https://forum.unity.com/threads/webgl-build-code-optimization-option.1058441/#post-9818385" /> | ||
/// </summary> | ||
enum CodeOptimizationWebGL | ||
{ | ||
BuildTimes, | ||
RuntimeSpeed, | ||
RuntimeSpeedLTO, | ||
DiskSize, | ||
DiskSizeLTO, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.