GHA/windows: avoid curl.exe libtool wrapper

Avoid the `curl.exe` wrapper binary created by libtool, and run the real
`curl.exe` directly for tests and version information.

This solution was used in Azure jobs. I missed it when migrating jobs
to GHA.

Applies to tests run in the `mingw, AM x86_64 c-ares U` job, which has
seen unexplained flakiness.

Ref: 354afc891d #6049
Follow-up to e53523fef0 #14859

Closes #15437
This commit is contained in:
Viktor Szakats 2024-10-29 01:41:32 +01:00
parent ef7399b8b5
commit 1a2d38c47c
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -274,6 +274,9 @@ jobs:
if: ${{ matrix.build == 'autotools' }} if: ${{ matrix.build == 'autotools' }}
timeout-minutes: 1 timeout-minutes: 1
run: | run: |
# avoid libtool's curl.exe wrapper
mv bld/src/.libs/curl.exe bld/src/curl.exe
mv bld/lib/.libs/*.dll bld/src || true
find . -name '*.exe' -o -name '*.dll' find . -name '*.exe' -o -name '*.dll'
bld/src/curl.exe --disable --version bld/src/curl.exe --disable --version