Multi-platform .NET bindings to the Ultralight project.
1name: Unity
2on:
3 push:
4 branches: [ '*' ]
5 pull_request:
6 branches: [ master ]
7jobs:
8 unity-2018-4-lts-tests:
9 runs-on: ubuntu-latest
10 if: "!contains(github.event.head_commit.message, '[skip unity]')"
11 env:
12 UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
13 steps:
14 - uses: actions/checkout@v2
15 - run: git remote add gitlab https://gitlab.com/tyler-in/UltralightSharp.git
16 - run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
17 - uses: actions/cache@v2
18 id: lfs-cache
19 with:
20 path: .git/lfs
21 key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
22 - run: git lfs pull || git lfs pull gitlab
23 - uses: satackey/action-docker-layer-caching@v0.0.4
24 - name: "Unity: Restore NuGet Packages"
25 uses: ImpromptuNinjas/unity-runner@master
26 #timeout-minutes: 6
27 with:
28 projectPath: UltralightSharp.UnityTests
29 unityVersion: 2018.4.25f1
30 args: -quit -nographics -noUpm -executeMethod ExecutableServices.RestoreNuGetPackages
31 - name: "Unity: Probe Ultralight Library"
32 uses: ImpromptuNinjas/unity-runner@master
33 #timeout-minutes: 6
34 with:
35 projectPath: UltralightSharp.UnityTests
36 unityVersion: 2018.4.25f1
37 args: -quit -noUpm -executeMethod ExecutableServices.UltralightLibraryProbe
38 - name: "Unity: Run Tests"
39 uses: ImpromptuNinjas/unity-runner@master
40 #timeout-minutes: 6
41 with:
42 projectPath: UltralightSharp.UnityTests
43 unityVersion: 2018.4.25f1
44 args: -noUpm -runTests -testPlatform playmode
45 request-unity-2018-4-lts-alf:
46 runs-on: ubuntu-latest
47 if: "contains(github.event.head_commit.message, '[unity alf]')"
48 steps:
49 - name: Request ALF
50 id: getManualLicenseFile
51 uses: webbertakken/unity-request-manual-activation-file@v1.1
52 with:
53 unityVersion: 2018.4.25f1
54 - name: Upload ALF as artifact
55 uses: actions/upload-artifact@v2
56 with:
57 path: ${{ steps.getManualLicenseFile.outputs.filePath }}