Skip to content

Commit 4bf414e

Browse files
committed
Set TEMP to full path instead of 8.3 short filenames
See <actions/runner-images#712>.
1 parent 8f1baa1 commit 4bf414e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

github-actions/ci-dist/action.yml

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ runs:
158158
) }}; then
159159
echo "MAKEFLAGS=-j$(( SYSTEM_CORES + 1))" >> $GITHUB_ENV
160160
fi
161+
162+
if ${{ toJSON( runner.os == 'Windows' ) }}; then
163+
# Set TEMP to full path instead of 8.3 short filenames.
164+
# See <https://github.com/actions/virtual-environments/issues/712>.
165+
echo "TMP=$USERPROFILE\\AppData\\Local\\Temp" >> $GITHUB_ENV
166+
echo "TEMP=$USERPROFILE\\AppData\\Local\\Temp" >> $GITHUB_ENV
167+
fi
161168
echo "::endgroup::"
162169
# Target: target-setup-perl
163170
- name: target-setup-perl (actions-setup-perl)

0 commit comments

Comments
 (0)