File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
OneSignalExample/Packages Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4848 id : cache-unity
4949 uses : actions/cache@v4
5050 with :
51- path : /opt/unity
51+ path : /home/runner/Unity
5252 key : unity-${{ runner.os }}-2021.3.0f1
5353
5454 - name : Setup Unity
5757 with :
5858 version : 2021.3.0f1
5959
60- - name : Verify Unity
61- run : /opt/unity/Editor/Unity -version
60+ - name : Verify Unity install
61+ run : |
62+ UNITY_PATH=$(find /home/runner -type f -name Unity | grep "Editor/Unity" | head -n 1)
63+ echo "Unity found at: $UNITY_PATH"
64+ $UNITY_PATH -version
6265
6366 - name : 🏗️ Run composeRelease.sh
6467 run : |
Original file line number Diff line number Diff line change 55 "com.onesignal.unity.ios" : " file:../../com.onesignal.unity.ios" ,
66 "com.unity.ai.navigation" : " 1.1.4" ,
77 "com.unity.ide.rider" : " 3.0.24" ,
8- "com.unity.ide.visualstudio" : " 2.0.18 " ,
8+ "com.unity.ide.visualstudio" : " 2.0.16 " ,
99 "com.unity.ide.vscode" : " 1.2.5" ,
1010 "com.unity.test-framework" : " 1.1.33" ,
1111 "com.unity.textmeshpro" : " 3.0.6" ,
Original file line number Diff line number Diff line change @@ -74,10 +74,8 @@ unity_project_path="${UNITY_PROJECT_PATH:-OneSignalExample}"
7474
7575# Common installation locations (CI, macOS, local)
7676unity_candidates=(
77- " /opt/unity/ Editor/Unity" # Linux runner (GitHub Actions )
77+ " /home/runner/Unity/Hub/ Editor/${unity_project_version} /Editor/ Unity" # Linux (buildalon/unity-setup )
7878 " /Applications/Unity/Hub/Editor/${unity_project_version} /Unity.app/Contents/MacOS/Unity" # macOS
79- " /home/runner/Unity/Hub/Editor/${unity_project_version} /Editor/Unity" # legacy Linux path
80- " /home/runner/Unity/Hub/Editor/${unity_project_version} /Unity.app/Contents/MacOS/Unity" # legacy macOS path
8179)
8280
8381unity_executable=" "
@@ -292,8 +290,7 @@ executeUnityMethod() {
292290 local method_result=$?
293291
294292 if [[ ${method_result} -ne 0 ]]; then
295- echo " Unity method failed with ${method_result} "
296- exit ${method_result}
293+ echo " Unity method ${method_name} } failed with ${method_result} "
297294 else
298295 echo " Unity method completed"
299296 fi
You can’t perform that action at this time.
0 commit comments