diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-08-09 21:37:08 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-08-11 20:29:55 +0900 |
| commit | 4adb6f6969d3f58d3987708201acf4f44b870cc9 (patch) | |
| tree | 010011c943f2a94f3f108525e558232ea2616c30 | |
| parent | a443cd012a352a7660ee22f9468082031f354d47 (diff) | |
CI: mingw: Set up msys2 environment variables
| -rw-r--r-- | .github/workflows/mingw.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index ca3d6a2859..3e889c56c0 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -70,6 +70,24 @@ jobs: with: ruby-version: '3.2' + - name: Set up env + id: setup-env + working-directory: + run: | + $msys2 = ${env:MSYS2_LOCATION} + echo $msys2\usr\bin $msys2\ucrt64\bin | + Tee-Object ${env:GITHUB_PATH} -Append -Encoding utf-8 + + # Use the fast device for the temporary directory. + # %TEMP% is inconsistent with %TMP% and test-all expects they are consistent. + # https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302 + $tmp = ${env:RUNNER_TEMP} + echo HOME=$home TMP=$tmp TEMP=$tmp TMPDIR=$tmp | + Tee-Object ${env:GITHUB_ENV} -Append -Encoding utf-8 + shell: pwsh # cmd.exe does not strip spaces before `|`. + env: + MSYS2_LOCATION: ${{ env.RI_DEVKIT }} + - name: Remove Strawberry Perl pkg-config working-directory: # `pkg-config.bat` included in Strawberry Perl is written in |
