ci: gh-actions: mingw: attempt to fix path
[awesomized/libmemcached] / .github / workflows / cmake-build-ci.gen
index d9434506ff3b00037456a7a9dfd696f16079ebf3..62523471d59ea8b708032925d2b37811ffee1d73 100755 (executable)
@@ -390,7 +390,7 @@ jobs:
 <?php steps(false);?>
 
   # win mingw build (set PATH=%PATH%;c:\msys64\mingw64\bin)
-  win-msvc:
+  win-mingw:
     name: win-mingw (<?=DEF["Windows"]?>, mingw, <?=DEF["mingw"]["ver"]?>)
     runs-on: <?=DEF["Windows"]?> #
     env:
@@ -405,10 +405,16 @@ jobs:
       - uses: msys2/setup-msys2@v2
         with:
           release: false
+          path-type: inherit
           install: >-
             rsync
             openssh
             mingw-w64-x86_64-toolchain
+            git
+      - name: Prepare environment (for mingw on Windows)
+        run: |
+          echo "c:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo "c:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
 <?php steps(false);?>
 
   # linux release builds