|
1 |
| ---- |
2 |
| -name: Test & Build |
| 1 | +# --- |
| 2 | +# name: Test & Build |
3 | 3 |
|
4 |
| -on: |
5 |
| - push: |
6 |
| - branches: [main] |
7 |
| - pull_request: |
| 4 | +# on: |
| 5 | +# push: |
| 6 | +# branches: [main] |
| 7 | +# pull_request: |
8 | 8 |
|
9 |
| -concurrency: |
10 |
| - group: ${{ github.workflow }}-${{ github.ref }} |
11 |
| - cancel-in-progress: true |
| 9 | +# concurrency: |
| 10 | +# group: ${{ github.workflow }}-${{ github.ref }} |
| 11 | +# cancel-in-progress: true |
12 | 12 |
|
13 |
| -jobs: |
14 |
| - test: |
15 |
| - if: github.event.pull_request.head.repo.fork == false |
16 |
| - name: Test sample game 🧪 |
17 |
| - runs-on: ubuntu-latest-8-cores |
| 13 | +# jobs: |
| 14 | +# test: |
| 15 | +# if: github.event.pull_request.head.repo.fork == false |
| 16 | +# name: Test sample game 🧪 |
| 17 | +# runs-on: ubuntu-latest-8-cores |
18 | 18 |
|
19 |
| - steps: |
20 |
| - - uses: actions/checkout@v3 |
21 |
| - with: |
22 |
| - lfs: true |
23 |
| - - run: git lfs pull |
| 19 | +# steps: |
| 20 | +# - uses: actions/checkout@v3 |
| 21 | +# with: |
| 22 | +# lfs: true |
| 23 | +# - run: git lfs pull |
24 | 24 |
|
25 |
| - - uses: game-ci/unity-test-runner@v4 |
26 |
| - id: passportTest |
27 |
| - env: |
28 |
| - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
29 |
| - UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
30 |
| - UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
31 |
| - with: |
32 |
| - unityVersion: 2021.3.26f1 |
33 |
| - projectPath: './sample' |
34 |
| - githubToken: ${{ secrets.GITHUB_TOKEN }} |
35 |
| - testMode: 'EditMode' |
36 |
| - - uses: actions/upload-artifact@v4 |
37 |
| - if: always() |
38 |
| - with: |
39 |
| - name: Test results |
40 |
| - path: ${{ steps.passportTest.outputs.artifactsPath }} |
| 25 | +# - uses: game-ci/unity-test-runner@v4 |
| 26 | +# id: passportTest |
| 27 | +# env: |
| 28 | +# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
| 29 | +# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
| 30 | +# UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
| 31 | +# with: |
| 32 | +# unityVersion: 2021.3.26f1 |
| 33 | +# projectPath: './sample' |
| 34 | +# githubToken: ${{ secrets.GITHUB_TOKEN }} |
| 35 | +# testMode: 'EditMode' |
| 36 | +# - uses: actions/upload-artifact@v4 |
| 37 | +# if: always() |
| 38 | +# with: |
| 39 | +# name: Test results |
| 40 | +# path: ${{ steps.passportTest.outputs.artifactsPath }} |
41 | 41 |
|
42 |
| - - uses: actions/upload-artifact@v4 |
43 |
| - if: always() |
44 |
| - with: |
45 |
| - name: Coverage results |
46 |
| - path: ${{ steps.passportTest.outputs.coveragePath }} |
47 |
| - build: |
48 |
| - needs: test |
49 |
| - name: Build for ${{ matrix.targetPlatform }} |
50 |
| - runs-on: ubuntu-latest-8-cores |
51 |
| - strategy: |
52 |
| - fail-fast: false |
53 |
| - matrix: |
54 |
| - targetPlatform: |
55 |
| - - iOS |
56 |
| - - Android |
57 |
| - - WebGL |
58 |
| -# - StandaloneOSX |
59 |
| - - StandaloneWindows64 |
60 |
| - steps: |
61 |
| - - uses: actions/checkout@v4 |
62 |
| - with: |
63 |
| - fetch-depth: 0 |
64 |
| - lfs: true |
65 |
| - - uses: actions/cache@v3 |
66 |
| - with: |
67 |
| - path: Library |
68 |
| - key: |
69 |
| - Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} |
70 |
| - restore-keys: | |
71 |
| - Library-${{ matrix.targetPlatform }} |
72 |
| - Library- |
73 |
| - - uses: game-ci/unity-builder@v4 |
74 |
| - env: |
75 |
| - UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
76 |
| - UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
77 |
| - UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
78 |
| - with: |
79 |
| - unityVersion: 2021.3.26f1 |
80 |
| - targetPlatform: ${{ matrix.targetPlatform }} |
81 |
| - projectPath: sample |
82 |
| - - name: Deploy to GitHub Pages |
83 |
| - |
84 |
| - if: matrix.targetPlatform == 'WebGL' |
85 |
| - with: |
86 |
| - branch: gh-pages |
87 |
| - folder: build/WebGL/WebGL |
88 |
| - - uses: actions/upload-artifact@v4 |
89 |
| - if: always() |
90 |
| - with: |
91 |
| - name: Build-${{ matrix.targetPlatform }} |
92 |
| - path: build |
| 42 | +# - uses: actions/upload-artifact@v4 |
| 43 | +# if: always() |
| 44 | +# with: |
| 45 | +# name: Coverage results |
| 46 | +# path: ${{ steps.passportTest.outputs.coveragePath }} |
| 47 | +# build: |
| 48 | +# needs: test |
| 49 | +# name: Build for ${{ matrix.targetPlatform }} |
| 50 | +# runs-on: ubuntu-latest-8-cores |
| 51 | +# strategy: |
| 52 | +# fail-fast: false |
| 53 | +# matrix: |
| 54 | +# targetPlatform: |
| 55 | +# - iOS |
| 56 | +# - Android |
| 57 | +# - WebGL |
| 58 | +# # - StandaloneOSX |
| 59 | +# - StandaloneWindows64 |
| 60 | +# steps: |
| 61 | +# - uses: actions/checkout@v4 |
| 62 | +# with: |
| 63 | +# fetch-depth: 0 |
| 64 | +# lfs: true |
| 65 | +# - uses: actions/cache@v3 |
| 66 | +# with: |
| 67 | +# path: Library |
| 68 | +# key: |
| 69 | +# Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} |
| 70 | +# restore-keys: | |
| 71 | +# Library-${{ matrix.targetPlatform }} |
| 72 | +# Library- |
| 73 | +# - uses: game-ci/unity-builder@v4 |
| 74 | +# env: |
| 75 | +# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
| 76 | +# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
| 77 | +# UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
| 78 | +# with: |
| 79 | +# unityVersion: 2021.3.26f1 |
| 80 | +# targetPlatform: ${{ matrix.targetPlatform }} |
| 81 | +# projectPath: sample |
| 82 | +# - name: Deploy to GitHub Pages |
| 83 | +# uses: JamesIves/[email protected] |
| 84 | +# if: matrix.targetPlatform == 'WebGL' |
| 85 | +# with: |
| 86 | +# branch: gh-pages |
| 87 | +# folder: build/WebGL/WebGL |
| 88 | +# - uses: actions/upload-artifact@v4 |
| 89 | +# if: always() |
| 90 | +# with: |
| 91 | +# name: Build-${{ matrix.targetPlatform }} |
| 92 | +# path: build |
0 commit comments