Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feature/snap-ghosts
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Nov 29, 2023
2 parents fd099a9 + 582d3b2 commit 5485329
Show file tree
Hide file tree
Showing 32 changed files with 68,889 additions and 33,152 deletions.
47 changes: 41 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ jobs:
extraoptions: -btb-il2cpp -btb-disableAccountLogins

steps:
- name: Set masking
run: echo "::add-mask::$UNITY_PASSWORD"
- name: Free extra space
# This takes several minutes, so we only do it where required. As of 12/10/2023, this increases free space from 18GB to 41GB
if: matrix.targetPlatform == 'Android' || matrix.targetPlatform == 'StandaloneWindows64'
Expand All @@ -223,17 +225,17 @@ jobs:
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn | head -n 100
echo "Removing unneeded large packages"
sudo apt-get update
sudo apt-get remove -y '^ghc-.*' '^dotnet-.*' azure-cli 'google-cloud-*' powershell google-chrome-stable firefox microsoft-edge-stable 'php.*' 'mongodb-*' 'mysql-*' 'mariadb-*' 'temurin-*' 'openjdk-*' default-jre-headless # Removes ~5GB
sudo apt-get autoremove -y
sudo apt-get clean
sudo apt update
sudo apt remove -y '^ghc-.*' '^dotnet-.*' azure-cli powershell google-chrome-stable firefox microsoft-edge-stable 'mongodb-*' 'mysql-*' 'mariadb-*' 'temurin-*' 'openjdk-*' default-jre-headless # Removes ~7GB # Adding 'google-cloud-*' removes another 750MB but takes about a minute; not worth it
sudo apt autoremove -y
sudo apt clean
df -h /
echo "Listing 100 largest remaining packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn | head -n 100
echo "Removing remaining large directories"
rm -rf /usr/share/dotnet/ # Removes ~1GB
df -h /
rm -rf "$AGENT_TOOLSDIRECTORY" # Removes ~11GB
rm -rf /usr/share/dotnet/ # Removes ~1GB
rm -rf "$AGENT_TOOLSDIRECTORY" # Removes ~6GB
echo "Disk space after cleanup"
df -h /
Expand Down Expand Up @@ -387,6 +389,39 @@ jobs:
echo -e "\n-define:PIMAX_SUPPORTED" | tee -a Assets/csc.rsp
- name: Build project
id: unity_builder
uses: game-ci/unity-builder@v4
env:
VERSION: ${{ needs.configuration.outputs.version}}
with:
allowDirtyBuild: true # Because of the OVR Update, the build tree might be dirty
unityVersion: ${{ env.UNITY_VERSION }}
targetPlatform: ${{ matrix.targetPlatform }}
customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.targetPlatform }}-${{ matrix.vrsdk }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ matrix.extraoptions }}
versioning: Custom
version: ${{ needs.configuration.outputs.version }}
buildMethod: BuildTiltBrush.CommandLine
androidKeystoreName: openbrush.keystore
androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 || '/u3+7QAAAAIAAAABAAAAAQAWb3BlbmJydXNoLW5vbi1vZmZpY2lhbAAAAX66M2FtAAAFATCCBP0wDgYKKwYBBAEqAhEBAQUABIIE6Wufa9OVstw7Bu/gdATKqoPafXGefygChsN1d4LGY0SMLPORjHXiryEVMKi2rt61kNeXzeLkiM4yIQAam4HZtNTxgjoFQ6KB7uzkqMJYKViBUgg1HCAl2e+QpYjqG+YNJT67CiPgjpsJHNE628CwKAvjJ85FhqFz+MKzNF8BOpS5g5waqFda67oxaE4qO8eAL+F9P7us+ziY5B4O3EJC9s7xpT2GV2ro0m0fZI2dr3OO9UdUO72CYTg5qs250JiSij26Haf4t8Vq28F2S8rTcMUVtN4FRtzeR/wjeeZ3laER+WoxYni4MrZEXhYYCGhfor8Zcfi3p5ka8TJCQxywTKpghpSwgykgMJLn1HksxB0vhIMGTb87c2CTqS4t5Js/OPdcYS4Jnr7mHdQtOGfJCvl3TJC7NJwzLLOzUTmVIogaZCA9GlRballbD7XYbR8mcPxs+jLq5HJJk8/3B8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StphE9Hwk8MAwSJ4reBdPiNMQvIsDEQ/aXSAyTiKQeIU5Zc+cYuJvHcyxIOVektDe8Er2AITvpXQDK1JRvYU6lFKym3j/CZ4comUwjdolB1C6fzlTkhP3ZuuFMfv543WyuVtb3A1mioLzQ5kfFlbTO0uXqEm+gltkK8AMqU6B5RJDYtQXIJkjR//UzNgpaILVvQ4pyyS6VvBNbUbrHaUKabtP3daDtQ0AQw3gSkCJ+QPpY9joIq38LMcVY5/x5/nbcxTuYvUlHozn/+qtNvA7MtikSNPcblNpmifg4o' }}
androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS || 'FakeKey' }}
androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME || 'openbrush-non-official' }}
androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS || 'FakeKey' }}
continue-on-error: true

- name: Check build state
if: ${{ steps.unity_builder.outputs.engineExitCode != 0 }} # not always() because if we cancel the job, this shouldn't run
run: |
# Check if the build exit code was a license failure or compilation error
if [[ ${{ steps.unity_builder.outputs.engineExitCode }} -eq 1 ]]
then
echo "::notice::License activation seems to have failed. Ignoring the failure and retrying the build step"
else
echo "The build failed with an exit code other than 1. Not going to retry. Check the 'Build project' step for details."
exit 255
fi
- name: Build project rerun (if needed)
id: unity_builder_rerun
if: ${{ steps.unity_builder.outputs.engineExitCode == 1 }}
uses: game-ci/unity-builder@v4
env:
VERSION: ${{ needs.configuration.outputs.version}}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
rev: v1.33.0
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.11.0
hooks:
- id: black
files: ^Support/
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 3.9.0
rev: 6.1.0
hooks:
- id: flake8
files: ^Support/
- repo: https://github.com/PyCQA/pylint.git
rev: v2.15.5
rev: v3.0.1
hooks:
- id: pylint
name: pylint
Expand All @@ -32,7 +32,7 @@ repos:
hooks:
- id: dotnet-format
exclude: ^(Assets/ThirdParty)|(Packages/)
entry: dotnet-format whitespace
entry: dotnet format whitespace
args:
- --folder
- --include
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
disable=bad-indentation,missing-class-docstring,missing-module-docstring,missing-function-docstring,invalid-name,fixme,line-too-long,duplicate-code,unspecified-encoding,consider-using-f-string,consider-using-with
disable=bad-indentation,missing-class-docstring,missing-module-docstring,missing-function-docstring,invalid-name,fixme,line-too-long,duplicate-code,unspecified-encoding,consider-using-f-string,consider-using-with,broad-exception-raised

extension-pkg-whitelist=math,zlib,struct
# Temporary, until https://github.com/PyCQA/pylint/issues/4297 is resolved
Expand Down
1 change: 1 addition & 0 deletions Assets/Plugins/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
</application>
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
</manifest>
7 changes: 1 addition & 6 deletions Assets/Prefabs/Panels/LabsPanel_Mobile.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -1147,12 +1147,7 @@ PrefabInstance:
- target: {fileID: 7020719392467468644, guid: 6e69b3bc22681fb44ac931399886cd69,
type: 3}
propertyPath: m_LocalPosition.x
value: -0.211
objectReference: {fileID: 0}
- target: {fileID: 7020719392467468644, guid: 6e69b3bc22681fb44ac931399886cd69,
type: 3}
propertyPath: m_LocalPosition.x
value: 0.205
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020719392467468644, guid: 6e69b3bc22681fb44ac931399886cd69,
type: 3}
Expand Down
Loading

0 comments on commit 5485329

Please sign in to comment.