Sort list of files before processing #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unity Build | |
on: [push, pull_request] | |
jobs: | |
buildForWindowsBasedPlatforms: | |
name: Build for ${{ matrix.targetPlatform }} | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
projectPath: | |
- PLYSequenceTesting | |
unityVersion: | |
- 2021.3.9f1 | |
targetPlatform: | |
- StandaloneWindows64 # Build a Windows 64-bit standalone. | |
- WSAPlayer # Build a UWP App. | |
- StandaloneLinux64 # Build a Linux 64-bit standalone. | |
- Android # Build an Android APK. | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ matrix.projectPath }}/Library | |
key: | |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ | |
hashFiles(matrix.projectPath) }} | |
restore-keys: | | |
Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}- | |
Library-${{ matrix.projectPath }}- | |
Library- | |
- uses: game-ci/unity-builder@v2 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
projectPath: ${{ matrix.projectPath }} | |
unityVersion: ${{ matrix.unityVersion }} | |
targetPlatform: ${{ matrix.targetPlatform }} | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Build | |
path: build |