Skip to content

Commit 4adb6f6

Browse files
committed
CI: mingw: Set up msys2 environment variables
1 parent a443cd0 commit 4adb6f6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/mingw.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,24 @@ jobs:
7070
with:
7171
ruby-version: '3.2'
7272

73+
- name: Set up env
74+
id: setup-env
75+
working-directory:
76+
run: |
77+
$msys2 = ${env:MSYS2_LOCATION}
78+
echo $msys2\usr\bin $msys2\ucrt64\bin |
79+
Tee-Object ${env:GITHUB_PATH} -Append -Encoding utf-8
80+
81+
# Use the fast device for the temporary directory.
82+
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
83+
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
84+
$tmp = ${env:RUNNER_TEMP}
85+
echo HOME=$home TMP=$tmp TEMP=$tmp TMPDIR=$tmp |
86+
Tee-Object ${env:GITHUB_ENV} -Append -Encoding utf-8
87+
shell: pwsh # cmd.exe does not strip spaces before `|`.
88+
env:
89+
MSYS2_LOCATION: ${{ env.RI_DEVKIT }}
90+
7391
- name: Remove Strawberry Perl pkg-config
7492
working-directory:
7593
# `pkg-config.bat` included in Strawberry Perl is written in

0 commit comments

Comments
 (0)