Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Santarh committed Mar 27, 2024
1 parent 5138290 commit a798174
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/create-unitypackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Detect Unity Version
id: detect-unity-version
run: |
PROJECT_VERSION_PATH="${UNITY_PROJECT_PATH}/ProjectSettings/ProjectVersion.txt"
PROJECT_VERSION_PATH="${{ env.UNITY_PROJECT_PATH }}/ProjectSettings/ProjectVersion.txt"
UNITY_HUB="C:\Program Files\Unity Hub\Unity Hub.exe"
UNITY_VERSION=`cat ${PROJECT_VERSION_PATH} | sed -n -E "s/^m_EditorVersion:\s+//p" | head -n 1`
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
"${{ needs.detect-unity-version.outputs.unity-editor-executable }}" \
-batchmode \
-silent-crashes \
-projectPath "${UNITY_PROJECT_PATH}" \
-projectPath "${{ env.UNITY_PROJECT_PATH }}" \
-executeMethod "UniGLTF.TestRunner.RunEditModeTests" \
-logFile run-edit-mode-tests.log \
-testRunnerNUnitXmlFile run-edit-mode-tests.xml
Expand All @@ -81,6 +81,8 @@ jobs:
echo "Output Log..."
cat run-edit-mode-tests.log | egrep "^\[\[TestRunnerLog\]\]"
# TODO: テスト結果を NUnit3 形式の run-edit-mode-tests.xml から読み込んで表示する
if [ ${RET:-1} -eq 0 ]; then
echo "Test succeeded."
exit 0
Expand All @@ -100,15 +102,15 @@ jobs:
"${{ needs.detect-unity-version.outputs.unity-editor-executable }}" \
-batchmode \
-silent-crashes \
-projectPath "${UNITY_PROJECT_PATH}" \
-projectPath "${{ env.UNITY_PROJECT_PATH }}" \
-executeMethod "VRM.DevOnly.PackageExporter.VRMExportUnityPackage.CreateUnityPackageWithBuild" \
-logFile create-unitypackage.log
- name: Upload UnityPackage
uses: actions/upload-artifact@v4
with:
name: unitypackage
path: "${UNITY_PROJECT_PATH}/*.unitypackage"
path: ${{ env.UNITY_PROJECT_PATH }}/*.unitypackage



Expand Down

0 comments on commit a798174

Please sign in to comment.