Parallelize mac with linux
This commit is contained in:
parent
534ce26ee5
commit
b012c98928
66
.github/workflows/main.yml
vendored
66
.github/workflows/main.yml
vendored
@ -102,8 +102,40 @@ jobs:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
buildWithMac:
|
||||
needs: [checklicense]
|
||||
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
|
||||
|
||||
buildWithWindows:
|
||||
needs: [build]
|
||||
needs: [build, buildWithMac]
|
||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: windows-2019
|
||||
@ -135,35 +167,3 @@ jobs:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user