Skip to content

Commit 6879827

Browse files
committed
fix robocopy
1 parent 6736cf9 commit 6879827

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/test-prime.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,23 @@ jobs:
9191

9292
- name: 'Move workspace to short path for MinGW compatibility'
9393
run: |
94-
# Create short path directory
94+
REM Create short path directory
9595
mkdir D:\t
96-
echo "Created D:\t directory"
97-
98-
# Move entire workspace to short path
99-
echo "Moving workspace from ${{ github.workspace }} to D:\t..."
100-
robocopy "${{ github.workspace }}" "D:\t" /E /MOVE /NFL /NDL /NJH /NJS /NC /NS
101-
102-
# Verify the move
103-
if [ -d "D:\t\build-assets" ]; then
104-
echo "✓ Workspace successfully moved to D:\t"
105-
ls -la D:\t
106-
else
107-
echo "✗ Failed to move workspace"
108-
exit 1
109-
fi
110-
shell: bash
96+
echo Created D:\t directory
97+
98+
REM Move entire workspace to short path
99+
echo Moving workspace to D:\t...
100+
robocopy "%GITHUB_WORKSPACE%" "D:\t" /E /MOVE /NFL /NDL /NJH /NJS /NC /NS
101+
102+
REM Check if robocopy succeeded (exit codes 0-3 are success for robocopy)
103+
if %ERRORLEVEL% LEQ 3 (
104+
echo ✓ Workspace successfully moved to D:\t
105+
dir D:\t
106+
) else (
107+
echo ✗ Failed to move workspace, robocopy exit code: %ERRORLEVEL%
108+
exit /b 1
109+
)
110+
shell: cmd
111111

112112
- name: 'Run ${{github.event.inputs.version}} native test'
113113
working-directory: D:\t

0 commit comments

Comments
 (0)