Skip to content

Commit cb387f1

Browse files
author
Christopher-Marcel Böddecker
committed
fix(templates): check Unity .meta files after building, not before
1 parent 03400f1 commit cb387f1

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

templates/steps/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@ parameters:
77

88
steps:
99
- ${{ if parameters.unityProject }}:
10-
- bash: |
11-
for entry in $(find . -not -path "*/\.*" -not -path . -not -name "*.meta")
12-
do if [ ! -f "$entry.meta" ]
13-
then echo "Missing Unity meta file for '$entry'." >&2
14-
fi
15-
done
16-
for entry in $(find . -not -path "*/\.*" -not -path . -name "*.meta")
17-
do if [ ! -f ${entry::-5} ] && [ ! -d ${entry::-5} ]; then
18-
echo "Missing file for Unity meta file '$entry'." >&2
19-
fi
20-
done
21-
displayName: Check Unity .meta files
22-
failOnStderr: true
2310
- powershell: |
2411
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
2512
Install-Module UnitySetup -Scope CurrentUser -Force
@@ -70,3 +57,17 @@ steps:
7057
msbuildArchitecture: x64
7158
${{ if parameters.unityProject }}:
7259
msbuildArgs: /p:UnityEditorAssembliesPath="$(Unity.Path)Editor/Data/Managed/"
60+
- ${{ if parameters.unityProject }}:
61+
- bash: |
62+
for entry in $(find . -not -path "*/\.*" -not -path . -not -name "*.meta")
63+
do if [ ! -f "$entry.meta" ]
64+
then echo "Missing Unity meta file for '$entry'." >&2
65+
fi
66+
done
67+
for entry in $(find . -not -path "*/\.*" -not -path . -name "*.meta")
68+
do if [ ! -f ${entry::-5} ] && [ ! -d ${entry::-5} ]; then
69+
echo "Missing file for Unity meta file '$entry'." >&2
70+
fi
71+
done
72+
displayName: Check Unity .meta files
73+
failOnStderr: true

0 commit comments

Comments
 (0)