Skip to content

Commit 6736cf9

Browse files
committed
try robocopy
1 parent 6f59dc1 commit 6736cf9

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

.github/workflows/test-prime.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,37 @@ jobs:
8989
ref: ${{github.event.inputs.helper-git-ref}}
9090
fetch-depth: 3
9191

92-
- name: 'Create virtual drive for short paths'
92+
- name: 'Move workspace to short path for MinGW compatibility'
9393
run: |
94-
# Create virtual drive B: pointing to current directory to shorten paths
95-
subst B: ${{ github.workspace }}
96-
dir B:\
97-
echo "Virtual drive B: created pointing to workspace"
98-
shell: cmd
94+
# Create short path directory
95+
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
99111

100112
- name: 'Run ${{github.event.inputs.version}} native test'
101-
working-directory: B:\
102-
run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} --develop
113+
working-directory: D:\t
114+
env:
115+
# Use short temp paths
116+
TMP: D:/tmp
117+
TEMP: D:/tmp
118+
TMPDIR: D:/tmp
119+
run: |
120+
# Create temp directory
121+
mkdir -p D:/tmp
122+
# Run the test from the short path
123+
bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} --develop
103124
104125

0 commit comments

Comments
 (0)