Combine Windows builds
This commit is contained in:
parent
691a498057
commit
2d5c38780f
46
.github/workflows/main.yml
vendored
46
.github/workflows/main.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
echo "is_unity_license_set=$is_unity_license_set" >> $GITHUB_OUTPUT
|
echo "is_unity_license_set=$is_unity_license_set" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
activation:
|
activation:
|
||||||
needs: [checklicense]
|
needs: checklicense
|
||||||
if: needs.checklicense.outputs.is_unity_license_set == 'false'
|
if: needs.checklicense.outputs.is_unity_license_set == 'false'
|
||||||
name: Request manual activation file 🔑
|
name: Request manual activation file 🔑
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
|
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: [checklicense]
|
needs: checklicense
|
||||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
||||||
name: Run all tests ✨
|
name: Run all tests ✨
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
path: ${{ steps.testRunner.outputs.artifactsPath }}
|
path: ${{ steps.testRunner.outputs.artifactsPath }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [test]
|
needs: test
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -99,8 +99,8 @@ jobs:
|
|||||||
name: Build-${{ matrix.targetPlatform }}
|
name: Build-${{ matrix.targetPlatform }}
|
||||||
path: build
|
path: build
|
||||||
|
|
||||||
buildWithMac:
|
buildForMac:
|
||||||
needs: [build]
|
needs: build
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -128,14 +128,16 @@ jobs:
|
|||||||
name: Build-${{ matrix.targetPlatform }}
|
name: Build-${{ matrix.targetPlatform }}
|
||||||
path: build
|
path: build
|
||||||
|
|
||||||
buildWithWindows:
|
buildForWindows:
|
||||||
needs: build
|
needs: buildForMac
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
targetPlatform:
|
targetPlatform:
|
||||||
|
- StandaloneWindows
|
||||||
|
- StandaloneWindows64
|
||||||
- WSAPlayer
|
- WSAPlayer
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -156,33 +158,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Build-${{ matrix.targetPlatform }}
|
name: Build-${{ matrix.targetPlatform }}
|
||||||
path: build
|
path: build
|
||||||
|
|
||||||
buildWithWindows2:
|
|
||||||
needs: buildWithWindows
|
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
|
||||||
runs-on: windows-2019
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
targetPlatform:
|
|
||||||
- StandaloneWindows
|
|
||||||
- StandaloneWindows64
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
lfs: true
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: Library
|
|
||||||
key: Library-${{ matrix.targetPlatform }}
|
|
||||||
- uses: game-ci/unity-builder@v2
|
|
||||||
env:
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
||||||
with:
|
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: Build-${{ matrix.targetPlatform }}
|
|
||||||
path: build
|
|
||||||
|
Loading…
Reference in New Issue
Block a user