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
|
||||
|
||||
activation:
|
||||
needs: [checklicense]
|
||||
needs: checklicense
|
||||
if: needs.checklicense.outputs.is_unity_license_set == 'false'
|
||||
name: Request manual activation file 🔑
|
||||
runs-on: ubuntu-latest
|
||||
@ -42,7 +42,7 @@ jobs:
|
||||
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
|
||||
|
||||
test:
|
||||
needs: [checklicense]
|
||||
needs: checklicense
|
||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
||||
name: Run all tests ✨
|
||||
runs-on: ubuntu-latest
|
||||
@ -68,7 +68,7 @@ jobs:
|
||||
path: ${{ steps.testRunner.outputs.artifactsPath }}
|
||||
|
||||
build:
|
||||
needs: [test]
|
||||
needs: test
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@ -99,8 +99,8 @@ jobs:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
buildWithMac:
|
||||
needs: [build]
|
||||
buildForMac:
|
||||
needs: build
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
@ -128,14 +128,16 @@ jobs:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
path: build
|
||||
|
||||
buildWithWindows:
|
||||
needs: build
|
||||
buildForWindows:
|
||||
needs: buildForMac
|
||||
name: Build for ${{ matrix.targetPlatform }}
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
targetPlatform:
|
||||
- StandaloneWindows
|
||||
- StandaloneWindows64
|
||||
- WSAPlayer
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -156,33 +158,3 @@ jobs:
|
||||
with:
|
||||
name: Build-${{ matrix.targetPlatform }}
|
||||
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