Skip to content

Commit 5a11e80

Browse files
committed
Fix Unity Integration CI
1 parent a7cd32c commit 5a11e80

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/BitMono.Build.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ jobs:
146146
uses: game-ci/unity-builder@v4
147147
env:
148148
PACKAGE_VERSION: ${{ needs.Build.outputs.version }}
149+
VERSION: ${{ needs.Build.outputs.version }}
149150
UNITY_VERSION: ${{ matrix.unity-version }}
150151
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
151152
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
@@ -160,15 +161,21 @@ jobs:
160161

161162
- name: Verify .unitypackage was created
162163
run: |
163-
if [ -f "BitMono-Unity-v${{ needs.Build.outputs.version }}-Unity${{ matrix.unity-version }}.unitypackage" ]; then
164-
echo "Unity package created successfully"
165-
size_mb=$(awk "BEGIN {printf \"%.2f\", $(stat -c%s \"BitMono-Unity-v${{ needs.Build.outputs.version }}-Unity${{ matrix.unity-version }}.unitypackage\")/1024/1024}")
166-
echo "File size: ${size_mb} MB"
167-
else
168-
echo "Unity package not found!" >&2
164+
set -e
165+
VERSION_NO_HASH='${{ needs.Build.outputs.version }}'
166+
UNITY_VER='${{ matrix.unity-version }}'
167+
FILE="BitMono-Unity-v${VERSION_NO_HASH}-Unity${UNITY_VER}.unitypackage"
168+
169+
if [ ! -f "$FILE" ]; then
170+
echo "Unity package not found at expected path: ./$FILE" >&2
171+
echo "Available unitypackages:" >&2
169172
find . -name "*.unitypackage" -print
170173
exit 1
171174
fi
175+
176+
echo "Unity package created: $FILE"
177+
size_mb=$(awk "BEGIN {printf \"%.2f\", $(stat -c%s \"$FILE\")/1024/1024}")
178+
echo "File size: ${size_mb} MB"
172179
173180
- name: Create Unity Package Directory
174181
run: |

0 commit comments

Comments
 (0)