Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 30 additions & 38 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
workflow_dispatch: {}

jobs:
# Checks Unity license.
checklicense:
name: Check for UNITY_LICENSE in GitHub Secrets
runs-on: ubuntu-latest
Expand All @@ -27,70 +26,63 @@ jobs:

format_check:
uses: ./.github/workflows/format.yaml

test:
name: Run Unity Tests
needs: [checklicense, format_check]
if: needs.checklicense.outputs.is_unity_license_set == 'true'
runs-on: windows-latest
steps:
- name: Checkout project
uses: actions/checkout@v5

- uses: ./.github/actions/nugetforunity-restore
with:
working-directory: .

- name: Run Unity Tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}

- name: Upload Test Results
uses: actions/upload-artifact@v5
with:
name: TestResults
path: artifacts

buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
needs: [test]
needs: [checklicense, format_check]
if: needs.checklicense.outputs.is_unity_license_set == 'true'
runs-on: windows-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- StandaloneWindows64

steps:
# Checkout.
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: ./.github/actions/nugetforunity-restore
with:
working-directory: .

# Cache Unity Library folder.
- uses: actions/cache@v4
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-

- uses: ./.github/actions/nugetforunity-restore
with:
working-directory: .

# Build project.
- uses: game-ci/unity-builder@v4
- name: Build Unity Project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
# Force Unity to write the editor log into the mounted workspace
customParameters: -logFile /github/workspace/UnityEditor.log

- name: Show Unity Editor Log
if: failure()
run: cat /github/workspace/UnityEditor.log
# Print Unity log (if exists)
- name: Print Unity Log
if: always()
run: |
echo "Workspace content:"
ls -R .
if [ -f "UnityEditor.log" ]; then
echo "=== LAST 200 LINES OF UnityEditor.log ==="
tail -n 200 UnityEditor.log
else
echo "UnityEditor.log NOT FOUND"
fi

# Upload Unity log as artifact
- name: Upload Unity Log
if: always() && hashFiles('UnityEditor.log') != ''
uses: actions/upload-artifact@v4
with:
name: UnityEditorLog
path: UnityEditor.log
8 changes: 0 additions & 8 deletions Assets/CesiumSettings.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Assets/CesiumSettings/Resources.meta

This file was deleted.

8 changes: 0 additions & 8 deletions Assets/CesiumSettings/Resources/CesiumIonServers.meta

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions Assets/CesiumSettings/Resources/CesiumRuntimeSettings.asset

This file was deleted.

This file was deleted.

70 changes: 0 additions & 70 deletions Assets/Scenes/MainAppScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -414,75 +414,6 @@ MonoBehaviour:
m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920
m_WorldSpaceHeight: 1080
--- !u!1001 &1207999956
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5427609650501534497, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6106143874565215203, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.y
value: 7.230792e-18
objectReference: {fileID: 0}
- target: {fileID: 6106143874565215203, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_LocalRotation.z
value: 9.279935e-19
objectReference: {fileID: 0}
- target: {fileID: 7591503138926735995, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: m_Name
value: CesiumGeoreference
objectReference: {fileID: 0}
- target: {fileID: 8800104130311657506, guid: c6e6123243f885144bd66074063abc03, type: 3}
propertyPath: _localToGlobeFixedMatrix.c0.z
value: -9.934400909822153e-18
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c6e6123243f885144bd66074063abc03, type: 3}
--- !u!1 &1467410701
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -966,7 +897,6 @@ SceneRoots:
- {fileID: 975047162}
- {fileID: 1000801976}
- {fileID: 1467410702}
- {fileID: 1207999956}
- {fileID: 1922436453}
- {fileID: 2018637788}
- {fileID: 2073701446}
Loading
Loading