Skip to content

Commit a59cb7d

Browse files
committed
ci: run build on different os
1 parent ab45cd1 commit a59cb7d

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

.github/workflows/test-build.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches: [main]
77
pull_request:
8+
workflow_dispatch:
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
@@ -13,7 +14,7 @@ concurrency:
1314
jobs:
1415
test:
1516
if: github.event.pull_request.head.repo.fork == false
16-
name: Test sample game 🧪
17+
name: Test sample app
1718
runs-on: ubuntu-latest-8-cores
1819

1920
steps:
@@ -47,16 +48,28 @@ jobs:
4748
build:
4849
needs: test
4950
name: Build for ${{ matrix.targetPlatform }}
50-
runs-on: ubuntu-latest-8-cores
51+
runs-on: ${{ matrix.os }}
5152
strategy:
5253
fail-fast: false
5354
matrix:
54-
targetPlatform:
55-
- iOS
56-
- Android
57-
- WebGL
58-
# - StandaloneOSX
59-
- StandaloneWindows64
55+
include:
56+
- targetPlatform: iOS
57+
os: macos-latest
58+
- targetPlatform: Android
59+
os: macos-latest
60+
- targetPlatform: WebGL
61+
os: macos-latest
62+
- targetPlatform: StandaloneOSX
63+
os: macos-latest
64+
- targetPlatform: iOS
65+
os: windows-latest
66+
- targetPlatform: Android
67+
os: windows-latest
68+
- targetPlatform: WebGL
69+
os: windows-latest
70+
- targetPlatform: StandaloneWindows64
71+
os: windows-latest
72+
6073
steps:
6174
- uses: actions/checkout@v4
6275
with:
@@ -65,8 +78,7 @@ jobs:
6578
- uses: actions/cache@v3
6679
with:
6780
path: Library
68-
key:
69-
Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
81+
key: Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
7082
restore-keys: |
7183
Library-${{ matrix.targetPlatform }}
7284
Library-

sample/ProjectSettings/ProjectSettings.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ PlayerSettings:
156156
androidMaxAspectRatio: 2.1
157157
applicationIdentifier:
158158
Android: com.immutable.ImmutableSample
159-
Standalone: com.immutable.unitysample
159+
Standalone: com.immutable.Immutable-Sample
160160
iPhone: com.immutable.Immutable-Sample
161161
buildNumber:
162162
Standalone: 0
@@ -804,7 +804,7 @@ PlayerSettings:
804804
allowUnsafeCode: 0
805805
useDeterministicCompilation: 1
806806
enableRoslynAnalyzers: 1
807-
selectedPlatform: 3
807+
selectedPlatform: 2
808808
additionalIl2CppArgs:
809809
scriptingRuntimeVersion: 1
810810
gcIncremental: 1

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/Plugins/VoltstroStudios.UnityWebBrowser.Shared.dll.meta

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/[email protected]/VoltRpc.dll.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)