Skip to content

Commit b6d3e09

Browse files
committed
chore: sample unity 6 ios app deeplink set up, ci build and test ios unity 6
1 parent a06746e commit b6d3e09

File tree

5 files changed

+1019
-3
lines changed

5 files changed

+1019
-3
lines changed

.github/workflows/test-build.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ jobs:
4444
with:
4545
name: Coverage results
4646
path: ${{ steps.passportTest.outputs.coveragePath }}
47+
test-unity6:
48+
if: github.event.pull_request.head.repo.fork == false
49+
name: Test Unity 6 sample app 🛠️
50+
runs-on: ubuntu-latest-8-cores
51+
steps:
52+
- uses: actions/checkout@v3
53+
with:
54+
lfs: true
55+
- run: git lfs pull
56+
- uses: game-ci/unity-test-runner@v4
57+
id: unity6Test
58+
env:
59+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
60+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
61+
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
62+
with:
63+
unityVersion: 6000.0.58f1
64+
projectPath: './sample-unity6'
65+
githubToken: ${{ secrets.GITHUB_TOKEN }}
66+
testMode: 'EditMode'
67+
- uses: actions/upload-artifact@v4
68+
if: always()
69+
with:
70+
name: Unity6-Test-results
71+
path: ${{ steps.unity6Test.outputs.artifactsPath }}
72+
- uses: actions/upload-artifact@v4
73+
if: always()
74+
with:
75+
name: Unity6-Coverage-results
76+
path: ${{ steps.unity6Test.outputs.coveragePath }}
77+
4778
build:
4879
needs: test
4980
name: Build for ${{ matrix.targetPlatform }}
@@ -90,3 +121,40 @@ jobs:
90121
with:
91122
name: Build-${{ matrix.targetPlatform }}
92123
path: build
124+
125+
build-unity6:
126+
needs: test-unity6
127+
name: Build Unity 6 for ${{ matrix.targetPlatform }}
128+
runs-on: ubuntu-latest-8-cores
129+
strategy:
130+
fail-fast: false
131+
matrix:
132+
targetPlatform:
133+
- iOS
134+
steps:
135+
- uses: actions/checkout@v4
136+
with:
137+
fetch-depth: 0
138+
lfs: true
139+
- uses: actions/cache@v3
140+
with:
141+
path: Library
142+
key:
143+
Library-Unity6-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
144+
restore-keys: |
145+
Library-Unity6-${{ matrix.targetPlatform }}
146+
Library-
147+
- uses: game-ci/unity-builder@v4
148+
env:
149+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
150+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
151+
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
152+
with:
153+
unityVersion: 6000.0.58f1
154+
targetPlatform: ${{ matrix.targetPlatform }}
155+
projectPath: sample-unity6
156+
- uses: actions/upload-artifact@v4
157+
if: always()
158+
with:
159+
name: Build-Unity6-${{ matrix.targetPlatform }}
160+
path: build

0 commit comments

Comments
 (0)