Skip to content

update some files

update some files #31

Workflow file for this run

name: Main Build Actions
on: [push, pull_request, workflow_dispatch]
jobs:
Tests:
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
#- playmode
- editmode
unityVersion:
- 2022.1.20f1
steps:
#Checkout
- uses: actions/checkout@v2
with:
lfs: true
#Cache
- uses: actions/cache@v2
with:
path: ${{ matrix.projectPath }}-${{ matrix.unityVersion }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
restore-keys: Library-
#Test Runner
- uses: game-ci/unity-test-runner@v2
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
projectPath: ${{ matrix.projectPath }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'
#Artifact
- uses: actions/upload-artifact@v2
if: always()
with:
name: Test results for ${{ matrix.testMode }}-${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}
#BUILD
Builds:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows
#- WebGL
unityVersion:
- 2022.1.20f1
steps:
#Checkout
- uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
#Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
restore-keys: Library-
#Build
- uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'
#Artifact
- uses: actions/upload-artifact@v2
with:
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
path: build/${{ matrix.targetPlatform }}