|
|
|
@ -32,7 +32,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
Test:
|
|
|
|
|
name: Test
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
runs-on: unity
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
@ -42,13 +42,13 @@ jobs:
|
|
|
|
|
- standalone
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: Checkout with LFS
|
|
|
|
|
uses: https://git.game-dev.space/minimata/checkout-lfs.git@main
|
|
|
|
|
with:
|
|
|
|
|
lfs: true
|
|
|
|
|
checkout-version: 4
|
|
|
|
|
|
|
|
|
|
# Cache
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
path: Library
|
|
|
|
|
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
|
|
|
@ -60,9 +60,9 @@ jobs:
|
|
|
|
|
uses: game-ci/unity-test-runner@v4
|
|
|
|
|
id: tests
|
|
|
|
|
env:
|
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITYLICENSE }}
|
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITYEMAIL }}
|
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITYPASSWORD }}
|
|
|
|
|
with:
|
|
|
|
|
useHostNetwork: true
|
|
|
|
|
unityVersion: 2022.3.42f1
|
|
|
|
@ -86,24 +86,10 @@ jobs:
|
|
|
|
|
name: Coverage results for ${{ matrix.testMode }}
|
|
|
|
|
path: ${{ steps.tests.outputs.coveragePath }}
|
|
|
|
|
|
|
|
|
|
- name: Build project
|
|
|
|
|
uses: game-ci/unity-builder@v4
|
|
|
|
|
env:
|
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
|
|
|
with:
|
|
|
|
|
unityVersion: 2022.3.42f1
|
|
|
|
|
dockerCpuLimit: 4
|
|
|
|
|
dockerMemoryLimit: 8g
|
|
|
|
|
targetPlatform: StandaloneLinux64
|
|
|
|
|
allowDirtyBuild: true # necessary because the custom image doesn't fit the repo's version and it tries to change stuff accordingly ntm
|
|
|
|
|
customParameters: -BuildOptions.AutoRunPlayer true
|
|
|
|
|
|
|
|
|
|
Build:
|
|
|
|
|
name: Build
|
|
|
|
|
needs: Test
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
runs-on: unity
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
@ -113,13 +99,13 @@ jobs:
|
|
|
|
|
- StandaloneWindows # Build a Windows 64-bit standalone.
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
- name: Checkout with LFS
|
|
|
|
|
uses: https://git.game-dev.space/minimata/checkout-lfs.git@main
|
|
|
|
|
with:
|
|
|
|
|
lfs: true
|
|
|
|
|
checkout-version: 4
|
|
|
|
|
|
|
|
|
|
# Cache
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
with:
|
|
|
|
|
path: Library
|
|
|
|
|
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
|
|
|
|
@ -130,9 +116,9 @@ jobs:
|
|
|
|
|
- name: Build project
|
|
|
|
|
uses: game-ci/unity-builder@v4
|
|
|
|
|
env:
|
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITYLICENSE }}
|
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITYEMAIL }}
|
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITYPASSWORD }}
|
|
|
|
|
with:
|
|
|
|
|
unityVersion: 2022.3.42f1
|
|
|
|
|
dockerCpuLimit: 4
|
|
|
|
|