Skip to content

Commit 4af7437

Browse files
committed
fix vs studio version
1 parent 828edfc commit 4af7437

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
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
@@ -57,8 +57,11 @@ jobs:
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: |

OneSignalExample/Packages/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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",

composeRelease.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ unity_project_path="${UNITY_PROJECT_PATH:-OneSignalExample}"
7474

7575
# Common installation locations (CI, macOS, local)
7676
unity_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

8381
unity_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

0 commit comments

Comments
 (0)