Merge branch 'main' of https://github.com/thirteen-games/unity-actions-example into main
This commit is contained in:
commit
a921e67681
38
.github/workflows/main.yml
vendored
38
.github/workflows/main.yml
vendored
@ -1,8 +1,6 @@
|
|||||||
name: Unity Testrunner
|
name: Unity Testrunner
|
||||||
|
|
||||||
on:
|
on: [push]
|
||||||
pull_request: {}
|
|
||||||
push: { branches: [main, master, develop] }
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
@ -67,37 +65,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Test results (all modes)
|
name: Test results (all modes)
|
||||||
path: ${{ steps.testRunner.outputs.artifactsPath }}
|
path: ${{ steps.testRunner.outputs.artifactsPath }}
|
||||||
|
|
||||||
build:
|
|
||||||
needs: [checklicense]
|
|
||||||
if: needs.checklicense.outputs.is_unity_license_set == 'true'
|
|
||||||
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
targetPlatform:
|
|
||||||
- StandaloneOSX
|
|
||||||
- StandaloneWindows64
|
|
||||||
- StandaloneLinux64
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
lfs: true
|
|
||||||
- uses: actions/cache@v1.1.0
|
|
||||||
with:
|
|
||||||
path: ${{ matrix.projectPath }}/Library
|
|
||||||
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}
|
|
||||||
restore-keys: |
|
|
||||||
Library-${{ matrix.projectPath }}-
|
|
||||||
Library-
|
|
||||||
- uses: webbertakken/unity-builder@v1.4
|
|
||||||
with:
|
|
||||||
projectPath: ${{ env.PROJECT_PATH }}
|
|
||||||
unityVersion: ${{ env.UNITY_VERSION }}
|
|
||||||
targetPlatform: ${{ matrix.targetPlatform }}
|
|
||||||
customParameters: "-nographics"
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: Build
|
|
||||||
path: build
|
|
||||||
|
Loading…
Reference in New Issue
Block a user