Skip to content

Commit 50640b9

Browse files
Patch GridRawImage for editor and update automation steps
1 parent f877f96 commit 50640b9

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/development-buildandtestupmrelease.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,21 @@ env:
2424

2525
jobs:
2626
test-unity-build:
27-
name: Test Unity UPM Build
27+
name: Test Unity UPM Build (${{ matrix.os }}, Unity ${{ matrix.unity-version }})
2828
runs-on: ${{ matrix.os }}
2929
if: always()
3030
strategy:
3131
fail-fast: false
3232
matrix:
3333
os: [ubuntu-latest, windows-latest, macos-latest]
3434
unity-version:
35-
- 6000.0.x
36-
- 6000
35+
- 6000.0
36+
- 6000.1
37+
- 6000.2
38+
- 6000.3
3739
include:
38-
# - os: ubuntu-latest
39-
# build-targets: StandaloneLinux64, Android
40+
- os: ubuntu-latest
41+
build-targets: StandaloneLinux64, Android
4042
- os: windows-latest
4143
build-targets: StandaloneWindows64, Android
4244
- os: macos-latest
@@ -49,18 +51,20 @@ jobs:
4951
unity-version: ${{ matrix.unity-version }} # overrides version in version-file
5052
build-targets: ${{ matrix.build-targets }}
5153

52-
- run: |
54+
- name: Inspect Unity setup outputs
55+
shell: pwsh
56+
run: |
5357
echo "Step Outputs:"
5458
echo "steps.unity-setup.unity-hub-path: '${{ steps.unity-setup.outputs.unity-hub-path }}'"
5559
echo "steps.unity-setup.unity-editors: '${{ steps.unity-setup.outputs.unity-editors }}'"
5660
echo "steps.unity-setup.unity-editor-path: '${{ steps.unity-setup.outputs.unity-editor-path }}'"
5761
echo "steps.unity-setup.unity-project-path: '${{ steps.unity-setup.outputs.unity-project-path }}'"
5862
5963
echo "Environment Variables:"
60-
echo "UNITY_HUB_PATH: '${{ env.UNITY_HUB_PATH }}'"
61-
echo "UNITY_EDITORS: '${{ env.UNITY_EDITORS }}'"
62-
echo "UNITY_EDITOR_PATH: '${{ env.UNITY_EDITOR_PATH }}'"
63-
echo "UNITY_PROJECT_PATH: '${{ env.UNITY_PROJECT_PATH }}'"
64+
echo "UNITY_HUB_PATH: '$env:UNITY_HUB_PATH'"
65+
echo "UNITY_EDITORS: '$env:UNITY_EDITORS'"
66+
echo "UNITY_EDITOR_PATH: '$env:UNITY_EDITOR_PATH'"
67+
echo "UNITY_PROJECT_PATH: '$env:UNITY_PROJECT_PATH'"
6468
6569
- uses: buildalon/activate-unity-license@v2
6670
if: runner.environment == 'github-hosted'

Runtime/Scripts/Controls/GridRawImage/GridRawImage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ public void SetLayoutVertical()
202202
}
203203
}
204204

205+
#if UNITY_EDITOR
205206
protected override void OnValidate()
206207
{
207208
SetAllDirty();
208209
base.OnValidate();
209210
}
211+
#endif
210212
}
211213
}

0 commit comments

Comments
 (0)