]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/windows: extend PATH instead copying libcurl.dll
authorViktor Szakats <commit@vsz.me>
Fri, 29 Nov 2024 09:25:20 +0000 (10:25 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 29 Nov 2024 10:10:11 +0000 (11:10 +0100)
It was already done in cmake jobs, but not in autotools ones.

Follow-up to 1a2d38c47c7825ad4d993d10664a45be3e3bbb58 #15437
Follow-up to 04184d45badeb45ce9166725a15f93742fb09770 #15662

Closes #15663

.github/workflows/windows.yml

index c0334b40fe57b63dd53021d1325ee583a8b0b91f..ac448a67152de11a4d7835af594a5ea063ef4243 100644 (file)
@@ -288,9 +288,9 @@ jobs:
           if [ '${{ matrix.build }}' = 'cmake' ]; then
             PATH="$PWD/bld/lib:$PATH"
           else
+            PATH="$PWD/bld/lib/.libs:$PATH"
             # avoid libtool's curl.exe wrapper
             mv bld/src/.libs/curl.exe bld/src/curl.exe
-            cp bld/lib/.libs/*.dll bld/src || true
           fi
           find . -name '*.exe' -o -name '*.dll'
           if [ '${{ matrix.test }}' != 'uwp' ]; then  # curl: error initializing curl library
@@ -312,10 +312,6 @@ jobs:
             mv bld/tests/libtest/.libs/*.exe bld/tests/libtest
             mv bld/tests/server/.libs/*.exe bld/tests/server
             mv bld/tests/unit/.libs/*.exe bld/tests/unit || true
-            cp bld/lib/.libs/*.dll bld/tests/http/clients || true
-            cp bld/lib/.libs/*.dll bld/tests/libtest || true
-            cp bld/lib/.libs/*.dll bld/tests/server || true
-            cp bld/lib/.libs/*.dll bld/tests/unit || true
           fi
 
       - name: 'install test prereqs'
@@ -344,6 +340,7 @@ jobs:
             PATH="$PWD/bld/lib:$PATH"
             cmake --build bld --config '${{ matrix.type }}' --target test-ci
           else
+            PATH="$PWD/bld/lib/.libs:$PATH"
             make -C bld -j5 V=1 test-ci
           fi