Refactor main workflow
This commit is contained in:
parent
916f5c617c
commit
75deb2d5a9
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
@ -5,14 +5,10 @@ on:
|
|||||||
push: {}
|
push: {}
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
env:
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
||||||
PROJECT_PATH: .
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checklicense:
|
checklicense:
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
name: Check for UNITY_LICENSE in GitHub Secrets
|
name: Check for UNITY_LICENSE in GitHub Secrets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
@ -47,6 +43,11 @@ jobs:
|
|||||||
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
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
PROJECT_PATH: .
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@ -69,6 +70,11 @@ jobs:
|
|||||||
needs: [test]
|
needs: [test]
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
PROJECT_PATH: .
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -98,6 +104,11 @@ jobs:
|
|||||||
needs: [build]
|
needs: [build]
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
PROJECT_PATH: .
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -124,6 +135,11 @@ jobs:
|
|||||||
needs: [buildWithMac]
|
needs: [buildWithMac]
|
||||||
name: Build for ${{ matrix.targetPlatform }}
|
name: Build for ${{ matrix.targetPlatform }}
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
env:
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
PROJECT_PATH: .
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
Reference in New Issue
Block a user