ci: gh-actions: mingw: fix git fetch depth
[awesomized/libmemcached] / .github / workflows / cmake-build-ci.gen
index d9434506ff3b00037456a7a9dfd696f16079ebf3..41fbecf5afdc544a5df376db28ce2283b1a14b90 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:
@@ -402,13 +402,21 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - 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