Skip to content

Commit

Permalink
feat: actions側でビルドした際に圧縮方式をGzipからDisabledへ自動で置き換え
Browse files Browse the repository at this point in the history
  • Loading branch information
IwamotoKakeru committed May 8, 2024
1 parent 141bc3e commit d92e3df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/webgl_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Compression FormatをGzipからDisabledに書き換え
- name: Set CompressionFormat to Disabled
run: |
sed -i -e 's/webGLCompressionFormat: ./webGLCompressionFormat: 2/' ProjectSettings/ProjectSettings.asset
# Build
- name: Build project
uses: game-ci/unity-builder@v4
Expand All @@ -32,6 +37,7 @@ jobs:
with:
targetPlatform: WebGL
unityVersion: 2022.3.6f1
allowDirtyBuild: true

# Upload artifact
- name: Upload the WebGL Build
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ PlayerSettings:
webGLWasmArithmeticExceptions: 0
webGLLinkerTarget: 1
webGLThreadsSupport: 0
webGLDecompressionFallback: 1
webGLDecompressionFallback: 0
webGLInitialMemorySize: 32
webGLMaximumMemorySize: 2048
webGLMemoryGrowthMode: 2
Expand Down

0 comments on commit d92e3df

Please sign in to comment.