revised changelog. could still use more restructuring though #780
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: Main Build Actions | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
#TESTS | |
tests: | |
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
testMode: | |
#- playmode | |
- editmode | |
unityVersion: | |
- 2019.3.15f1 | |
- 2019.4.40f1 | |
- 2020.3.48f1 | |
- 2021.3.37f1 | |
- 2022.3.24f1 | |
- 2023.2.18f1 | |
steps: | |
#Test Checkout | |
- uses: actions/checkout@v4.1.4 | |
with: | |
lfs: true | |
#Test Cache | |
- uses: actions/cache@v4.0.2 | |
with: | |
path: Library | |
key: Library-${{ matrix.unityVersion }} | |
restore-keys: | |
Library-${{ matrix.unityVersion }} | |
#Test Runner | |
- uses: game-ci/unity-test-runner@v4.1.1 | |
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' | |
#Test Artifact | |
- uses: actions/upload-artifact@v4.3.3 | |
if: always() | |
with: | |
name: Test results for ${{ matrix.testMode }}-${{ matrix.unityVersion }} | |
path: ${{ steps.tests.outputs.artifactsPath }} | |
#BUILD | |
builds: | |
name: ${{ matrix.targetPlatform }}-${{ matrix.unityVersion }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
targetPlatform: | |
- StandaloneWindows | |
#- WebGL | |
unityVersion: | |
- 2019.3.15f1 | |
- 2019.4.40f1 | |
- 2020.3.48f1 | |
- 2021.3.37f1 | |
- 2022.3.24f1 | |
- 2023.2.18f1 | |
include: | |
- targetPlatform: WebGL | |
unityVersion: 2019.3.15f1 | |
- targetPlatform: WebGL | |
unityVersion: 2023.2.18f1 | |
steps: | |
#Build Checkout | |
- uses: actions/checkout@v4.1.4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
#Build Cache | |
- uses: actions/cache@v4.0.2 | |
with: | |
path: Library | |
key: Library-${{ matrix.unityVersion }} | |
restore-keys: | |
Library-${{ matrix.unityVersion }} | |
#Build | |
- uses: game-ci/unity-builder@v4.2.3 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
targetPlatform: ${{ matrix.targetPlatform }} | |
unityVersion: ${{ matrix.unityVersion }} | |
customParameters: '-nographics' | |
#Build Artifact | |
- uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: Build-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }} | |
path: build/${{ matrix.targetPlatform }} |