Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/audience/matrix-shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{ "version": "6000.4.0f1", "changeset": "8cf496087c8f" },
{ "version": "2022.3.62f2", "changeset": "7670c08855a9" }
],
"scripting_backends": ["IL2CPP", "Mono2x"],
"scripting_backends": ["IL2CPP"],
"desktop_targets": [
{ "target": "StandaloneWindows64", "runner": ["self-hosted", "Windows", "X64"], "install_unity_script": ".github/scripts/audience/install-unity-windows.ps1", "run_playmode_script": ".github/scripts/audience/playmode-windows.ps1" },
{ "target": "StandaloneOSX", "runner": ["self-hosted", "macOS", "ARM64"], "install_unity_script": ".github/scripts/audience/install-unity-macos.sh", "run_playmode_script": ".github/scripts/audience/playmode-macos.sh" },
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test-audience-sample-app.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Audience SDK PlayMode (IL2CPP + Mono)
name: Audience SDK PlayMode (IL2CPP)

on:
pull_request:
Expand Down Expand Up @@ -454,13 +454,8 @@ jobs:
return total;
}

function apkSize(dir) {
const apk = fs.readdirSync(dir).find(f => f.endsWith('.apk'));
return apk ? fs.statSync(path.join(dir, apk)).size : 0;
}

const measured = {
Android: apkSize('artifacts/Android'),
Android: dirSize('artifacts/Android'),
Windows: dirSize('artifacts/Windows'),
iOS: dirSize('artifacts/iOS'),
macOS: dirSize('artifacts/macOS'),
Expand Down
6 changes: 6 additions & 0 deletions examples/audience/Assets/Editor/AndroidBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public static void Build()
{
string buildPath = GetArgValue("--buildPath") ?? DefaultBuildPath;

// Force a direct APK output. exportAsGoogleAndroidProject outputs a Gradle project
// directory and buildAppBundle outputs a .aab — either causes the *.apk glob in CI
// to find nothing and report 0 bytes.
EditorUserBuildSettings.exportAsGoogleAndroidProject = false;
EditorUserBuildSettings.buildAppBundle = false;

var options = new BuildPlayerOptions
{
scenes = new[] { "Assets/SampleApp/Scenes/SampleApp.unity" },
Expand Down
Loading