ci: gh-actions: mingw: attempt to fix path
authorMichael Wallner <mike@php.net>
Sun, 20 Dec 2020 15:52:56 +0000 (16:52 +0100)
committerMichael Wallner <mike@php.net>
Sun, 20 Dec 2020 15:52:56 +0000 (16:52 +0100)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml
CPack.txt

index 60cf68d0d01009bb26bf083b03329ee954bf9f07..657c8b0703509caf60acaaa95db57527633cd348 100755 (executable)
@@ -405,12 +405,17 @@ jobs:
       - uses: msys2/setup-msys2@v2
         with:
           release: false
+          path-type: inherit
           install: >-
             rsync
             openssh
             mingw-w64-x86_64-toolchain
             git
-<?php steps(false);?>
+      - name: Prepare environment (for mingw on Windows)
+        run: |
+          echo "\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo "\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+  <?php steps(false);?>
 
   # linux release builds
   release:
index f3e4b78860fbb3450aac37f6a189d2a5c2c70975..c3d78847c6e0df37b556673701d00ede72e89f42 100644 (file)
@@ -627,12 +627,17 @@ jobs:
       - uses: msys2/setup-msys2@v2
         with:
           release: false
+          path-type: inherit
           install: >-
             rsync
             openssh
             mingw-w64-x86_64-toolchain
             git
-      - name: Install dependencies (Linux)
+      - name: Prepare environment (for mingw on Windows)
+        run: |
+          echo "\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo "\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+        - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
           sudo apt-get install -my \
index 09fb62078b9c980c9fa3992153cfd9553d4102cf..247daa21fde1a4855d6698a94ef42d92fbaaa7e8 100644 (file)
--- a/CPack.txt
+++ b/CPack.txt
@@ -53,7 +53,7 @@ execute_process(
         OUTPUT_VARIABLE PROJECT_TAG
         ERROR_VARIABLE GIT_ERROR_OUTPUT
 )
-if(ERROR_OUTPUT)
+if(GIT_ERROR_OUTPUT)
     message(NOTICE "git describe: ${GIT_ERROR_OUTPUT}")
 endif()
 string(STRIP "${PROJECT_TAG}" PROJECT_TAG)