Skip to content

Commit 852acd2

Browse files
committed
Merge branch 'master' into 6000.0-urp
2 parents 45a1fe0 + 5070dbe commit 852acd2

File tree

3 files changed

+78
-38
lines changed

3 files changed

+78
-38
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,24 @@ jobs:
7373
if: ${{ github.ref == 'refs/heads/master' || needs.variables.outputs.TAG != needs.variables.outputs.UNITY_VERSION }}
7474
needs: [ variables ]
7575
runs-on: ubuntu-latest
76-
strategy:
77-
fail-fast: false
7876
steps:
7977
- uses: actions/checkout@v4
8078
with:
8179
fetch-depth: 0
8280
lfs: true
8381

82+
# Avoid running into space issues for github runners - Docker images can take up quite some space
83+
- name: Free Disk Space
84+
run: |
85+
echo "Disk space before cleanup:"
86+
df -h
87+
sudo rm -rf /usr/share/dotnet
88+
sudo rm -rf /opt/ghc
89+
sudo rm -rf /usr/local/share/boost
90+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
91+
echo "Disk space after cleanup:"
92+
df -h
93+
8494
# Unity 2020 cache is not compatible with older versions
8595
- name: Unity Library Cache 2020 or higher
8696
if: ${{ !startsWith(needs.variables.outputs.UNITY_VERSION, '201') }}
@@ -111,6 +121,17 @@ jobs:
111121
versioning: None
112122
buildName: ${{ needs.variables.outputs.BUILD_NAME }}
113123

124+
- name: Check Disk Space After Build
125+
run: |
126+
echo "Disk space after build:"
127+
df -h
128+
AVAILABLE=$(df / | tail -1 | awk '{print $4}')
129+
AVAILABLE_GB=$(echo $AVAILABLE | sed 's/G//')
130+
echo "Available space: ${AVAILABLE_GB}GB"
131+
if (( $(echo "$AVAILABLE_GB < 1" | bc -l) )); then
132+
echo "::warning::Low disk space! Less than 1GB remaining."
133+
fi
134+
114135
- uses: actions/upload-artifact@v4
115136
with:
116137
name: ${{ needs.variables.outputs.BUILD_NAME }}

.github/workflows/upgrade-unity.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
upgrade-unity-version:
3535
name: Upgrade Unity version and packages to ${{ inputs.unityVersion }}
3636
runs-on: ubuntu-latest
37-
strategy:
38-
fail-fast: false
3937
steps:
4038
- name: Log input parameter
4139
run: |
@@ -75,6 +73,18 @@ jobs:
7573
env:
7674
GIT_USER: ${{ github.actor }}
7775

76+
# Avoid running into space issues for github runners - Docker images can take up quite some space
77+
- name: Free Disk Space
78+
run: |
79+
echo "Disk space before cleanup:"
80+
df -h
81+
sudo rm -rf /usr/share/dotnet
82+
sudo rm -rf /opt/ghc
83+
sudo rm -rf /usr/local/share/boost
84+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
85+
echo "Disk space after cleanup:"
86+
df -h
87+
7888
# Make sure the branch has the latest master changes in
7989
- name: Merge master into current branch
8090
if: ${{ inputs.mergeMaster }}
@@ -149,6 +159,18 @@ jobs:
149159
allowDirtyBuild: true
150160
manualExit: true
151161

162+
- name: Check Disk Space After Build
163+
if: ${{ !inputs.tagsOnly }}
164+
run: |
165+
echo "Disk space after build:"
166+
df -h
167+
AVAILABLE=$(df / | tail -1 | awk '{print $4}')
168+
AVAILABLE_GB=$(echo $AVAILABLE | sed 's/G//')
169+
echo "Available space: ${AVAILABLE_GB}GB"
170+
if (( $(echo "$AVAILABLE_GB < 1" | bc -l) )); then
171+
echo "::warning::Low disk space! Less than 1GB remaining."
172+
fi
173+
152174
- name: Delete build folder with elevated rights
153175
if: ${{ !inputs.tagsOnly }}
154176
run: sudo rm -rf ./build

README.md

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
![Preview](./preview.png)
44

5-
[![](https://img.shields.io/github/release-date/JohannesDeml/UnityWebGL-LoadingTest.svg)](https://github.com/JohannesDeml/UnityWebGL-LoadingTest/releases) [![Tested up to Unity 6.1](https://img.shields.io/badge/tested%20up%20to%20unity-6000.1-green.svg?logo=unity&cacheSeconds=2592000)](https://unity3d.com/get-unity/download/archive)
5+
[![](https://img.shields.io/github/release-date/JohannesDeml/UnityWebGL-LoadingTest.svg)](https://github.com/JohannesDeml/UnityWebGL-LoadingTest/releases) [![Tested up to Unity 6.2](https://img.shields.io/badge/tested%20up%20to%20unity-6000.2-green.svg?logo=unity&cacheSeconds=2592000)](https://unity3d.com/get-unity/download/archive)
66

7-
*Testing Unity's WebGL size and loading time for different versions (2018.4 - 6000.1) and settings*
7+
*Testing Unity's WebGL size and loading time for different versions (2018.4 - 6000.2) and settings*
88

99
* [Overview page of all builds](https://deml.io/experiments/unity-webgl/)
1010
* [Implementation in Godot](https://github.com/JohannesDeml/Godot-Web-LoadingTest)
@@ -13,83 +13,80 @@
1313

1414
## Features
1515

16-
* Toggle-able In-DOM Debug console
17-
![Debug Console Screenshot with description of features](./Documentation/DebugConsole.png)
18-
* Unity Rich text styling support for browser console & debug console
19-
![Screenshot of styled unity log message in browser console](./Documentation/UnityRichTextSupport.png)
16+
* [Toggle-able In-DOM Debug console](./Documentation/DebugConsole.png)
17+
* [Unity Rich text styling support for browser console & debug console](./Documentation/UnityRichTextSupport.png)
2018
* Easy access to unity functions through the browser console ([Youtube](https://youtu.be/OjypxsD6XMI))
2119
* Handy debug functions for times and memory consumption
22-
* Responsive template layout for maximum mobile compatibility
20+
* Responsive template layout for maximum mobile compatibility and smooth transition to the game after loading finished
2321
* Github Actions to automatically build the project and deploy it on the server via [Game CI](https://game.ci/)
24-
* Tracking multiple Unity versions starting from 2018.4
22+
* Action to upgrade a branch automatically to a new Unity version with automated builds and a PR
23+
* Tracking differnt Unity versions starting from 2018.4 (over 700 live demo builds for you to evaluate)
2524
* Brotli Compression
26-
* Build targets for webgl1, webgl2 and webgpu
25+
* Build targets for webgl1, webgl2 and webgpu with BiRP and URP
2726

2827
## Live Demos ([All Builds](https://deml.io/experiments/unity-webgl/))
2928

3029
### Built-in Renderpipeline WebGL2
31-
3230
Version | Size | Link
3331
--- | --- | ---
34-
6000.0.34f1 | 3.38 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-webgl2
32+
6000.2.10f1 | 3.39 MB | https://deml.io/experiments/unity-webgl/6000.2.10f1-webgl2
33+
6000.1.17f1 | 3.33 MB | https://deml.io/experiments/unity-webgl/6000.1.17f1-webgl2
34+
6000.0.62f1 | 3.33 MB | https://deml.io/experiments/unity-webgl/6000.0.62f1-webgl2
3535
2023.2.20f1 | 3.27 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-webgl2
3636
2023.1.20f1 | 3.19 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2
37-
2022.3.56f1 | 3.17 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-webgl2
38-
2021.3.45f1 | 2.83 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2
37+
2022.3.62f3 | 3.18 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-webgl2
38+
2021.3.45f2 | 2.83 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-webgl2
3939
2020.3.48f1 | 3.01 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2
4040

4141
### Built-in Renderpipeline WebGL1
42-
4342
Version | Size | Link
4443
--- | --- | ---
45-
2022.3.56f1 | 3.16 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-webgl1
46-
2021.3.45f1 | 2.81 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl1
44+
2022.3.62f3 | 3.16 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-webgl1
45+
2021.3.45f2 | 2.81 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-webgl1
4746
2020.3.48f1 | 2.99 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl1
4847

4948
### Built-in Renderpipeline Minimum size
50-
5149
Version | Size | Link
5250
--- | --- | ---
53-
6000.0.34f1 | 2.97 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-minsize-webgl2
51+
6000.2.10f1 | 2.92 MB | https://deml.io/experiments/unity-webgl/6000.2.10f1-minsize-webgl2
52+
6000.1.17f1 | 2.85 MB | https://deml.io/experiments/unity-webgl/6000.1.17f1-minsize-webgl2
53+
6000.0.62f1 | 2.93 MB | https://deml.io/experiments/unity-webgl/6000.0.62f1-minsize-webgl2
5454
2023.2.20f1 | 2.88 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-minsize-webgl2
5555
2023.1.20f1 | 2.76 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2
56-
2022.3.56f1 | 2.73 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-minsize-webgl1
57-
2021.3.45f1 | 2.79 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-minsize-webgl1
56+
2022.3.62f3 | 2.74 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-minsize-webgl1
57+
2021.3.45f2 | 2.79 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-minsize-webgl1
5858
2020.3.48f1 | 2.54 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-minsize-webgl1
5959

6060
### URP WebGL2
61-
6261
Version | Size | Link
6362
--- | --- | ---
64-
6000.0.34f1 | 7.94 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-urp-webgl2
63+
6000.2.10f1 | 8.13 MB | https://deml.io/experiments/unity-webgl/6000.2.10f1-urp-webgl2
64+
6000.1.17f1 | 7.97 MB | https://deml.io/experiments/unity-webgl/6000.1.17f1-urp-webgl2
65+
6000.0.62f1 | 7.94 MB | https://deml.io/experiments/unity-webgl/6000.0.62f1-urp-webgl2
6566
2023.2.20f1 | 6.88 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-webgl2
6667
2023.1.20f1 | 6.26 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2
67-
2022.3.56f1 | 5.97 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-webgl2
68-
2021.3.45f1 | 6.36 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2
68+
2022.3.62f3 | 5.98 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-urp-webgl2
69+
2021.3.45f2 | 6.36 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-urp-webgl2
6970
2020.3.48f1 | 5.65 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2
7071

7172
### URP WebGL1
72-
7373
Version | Size | Link
7474
--- | --- | ---
75-
2022.3.56f1 | 5.94 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-webgl1
76-
2021.3.45f1 | 6.17 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl1
75+
2022.3.62f3 | 5.93 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-urp-webgl1
76+
2021.3.45f2 | 6.18 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-urp-webgl1
7777
2020.3.48f1 | 5.49 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl1
7878

7979
### URP Minimum Size
80-
8180
Version | Size | Link
8281
--- | --- | ---
83-
6000.0.34f1 | 6.10 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-urp-minsize-webgl2
82+
6000.1.17f1 | 5.64 MB | https://deml.io/experiments/unity-webgl/6000.1.17f1-urp-minsize-webgl2
83+
6000.0.62f1 | 6.10 MB | https://deml.io/experiments/unity-webgl/6000.0.62f1-urp-minsize-webgl2
8484
2023.2.20f1 | 5.33 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-minsize-webgl2
8585
2023.1.20f1 | 4.88 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-minsize-webgl2
86-
2022.3.56f1 | 4.69 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-minsize-webgl1
87-
2021.3.45f1 | 6.16 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-minsize-webgl1
86+
2022.3.62f3 | 4.69 MB | https://deml.io/experiments/unity-webgl/2022.3.62f3-urp-minsize-webgl1
87+
2021.3.45f2 | 6.16 MB | https://deml.io/experiments/unity-webgl/2021.3.45f2-urp-minsize-webgl1
8888
2020.3.48f1 | 4.91 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-minsize-webgl1
8989

90-
91-
92-
9390
## Platform Compatibility
9491

9592
| Platform | Chrome | Firefox | Edge | Safari | Internet Explorer |

0 commit comments

Comments
 (0)