Skip to content

Commit

Permalink
reformat the workflow back to what it was. branch dirty issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Aug 22, 2023
1 parent f3c029e commit d646eb1
Showing 1 changed file with 54 additions and 18 deletions.
72 changes: 54 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ name: Main Build Actions
on: [push, pull_request, workflow_dispatch]

jobs:

Builds:
name: ${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}

#TESTS
tests:
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
#- playmode
- editmode
targetPlatform:
- StandaloneWindows
#- WebGL
unityVersion:
- 2019.3.15f1
- 2019.4.40f1
Expand All @@ -29,25 +27,23 @@ jobs:
- 2022.2.21f1
- 2022.3.7f1
- 2023.1.0f1

steps:

#Checkout
#Test Checkout
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
lfs: true
#Cache

#Test Cache
- uses: actions/cache@v1.2.1
with:
path: Library
key: Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.projectPath }}-${{ matrix.unityVersion }}
Library-

#Test
key: Library-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.unityVersion }}

#Test Runner
- uses: game-ci/unity-test-runner@v2.2.0
id: tests
env:
Expand All @@ -60,13 +56,53 @@ jobs:
checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'

#Test Artifact
- uses: actions/upload-artifact@v3.1.2
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:
- 2019.3.15f1
- 2019.4.40f1
- 2020.1.17f1
- 2020.2.7f1
- 2020.3.48f1
- 2021.1.28f1
- 2021.2.19f1
- 2021.3.29f1
- 2022.1.24f1
- 2022.2.21f1
- 2022.3.7f1
- 2023.1.0f1

steps:

#Build Checkout
- uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
lfs: true

#Build Cache
- uses: actions/cache@v1.2.1
with:
path: Library
key: Library-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.unityVersion }}

#Build
- uses: game-ci/unity-builder@v3.0.0
Expand Down

0 comments on commit d646eb1

Please sign in to comment.