|
44 | 44 | with: |
45 | 45 | name: Coverage results |
46 | 46 | 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 | + |
47 | 78 | build: |
48 | 79 | needs: test |
49 | 80 | name: Build for ${{ matrix.targetPlatform }} |
@@ -90,3 +121,40 @@ jobs: |
90 | 121 | with: |
91 | 122 | name: Build-${{ matrix.targetPlatform }} |
92 | 123 | 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