Add il2cpp and windows and mac workflows
This commit is contained in:
@@ -6,6 +6,8 @@ on:
|
||||
|
||||
env:
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
|
||||
PROJECT_PATH: .
|
||||
|
||||
jobs:
|
||||
@@ -75,9 +77,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
targetPlatform:
|
||||
- StandaloneOSX
|
||||
- StandaloneWindows
|
||||
- StandaloneWindows64
|
||||
- StandaloneLinux64
|
||||
- iOS
|
||||
- Android
|
||||
@@ -102,3 +102,68 @@ jobs:
|
||||
with:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
buildWithWindows:
|
||||
needs: [build]
|
||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
targetPlatform:
|
||||
- StandaloneWindows64
|
||||
- WSAPlayer
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
lfs: true
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ matrix.projectPath }}/Library
|
||||
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}
|
||||
restore-keys: |
|
||||
Library-${{ matrix.projectPath }}-
|
||||
Library-
|
||||
- uses: game-ci/unity-builder@v2
|
||||
with:
|
||||
projectPath: ${{ env.PROJECT_PATH }}
|
||||
targetPlatform: ${{ matrix.targetPlatform }}
|
||||
- name: Upload Build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
buildWithMac:
|
||||
needs: [buildWithWindows]
|
||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
targetPlatform:
|
||||
- StandaloneOSX
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
lfs: true
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ matrix.projectPath }}/Library
|
||||
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}
|
||||
restore-keys: |
|
||||
Library-${{ matrix.projectPath }}-
|
||||
Library-
|
||||
- uses: game-ci/unity-builder@v2
|
||||
with:
|
||||
projectPath: ${{ env.PROJECT_PATH }}
|
||||
targetPlatform: ${{ matrix.targetPlatform }}
|
||||
- name: Upload Build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
Reference in New Issue
Block a user