Repository navigation
Conversation
|
That's probably not what you want to do. it's likely to be slower, and adding path-type: inherit is more likely to cause issues than help. What I meant was to use setup-msys2 that way in the actions where you are using c:\msys64\usr\bin\bash as the shell, and use |
Ah okay, got it. I indeed could not readily see an obvious speed-up edit 3: my mistake, missed to add the over-install options for mingw. Before: https://github.com/curl/curl/actions/runs/13460225789 For the other jobs (dl-mingw and msvc), I understand it'd make PATH edit: actually... for dl-mingw, installing extra package may be useful, edit 2: for installing ninja it'd be useful too, but installing MSYS2 may |
The pipe patch only dealt with pipes where the other end was a non-Cygwin (native) process.
You had two setup-msys2 actions with different if conditions on them, you only updated one of them. BTW, I'm expecting that setup-msys2 will be updated soon with a new installer, which will contain the 3.5.7 runtime. You pin setup-msys2 by commit hash, I don't know if you'd rather keep that back or downgrade the runtime...
With |
7e724ff to
47464be
Compare
| [ '${{ matrix.type }}' = 'Debug' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=' | ||
| [ '${{ matrix.type }}' = 'Release' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=' | ||
| cmake -B bld -G ${{ contains(matrix.url, '/winlibs_mingw/') && 'Ninja' || 'MSYS Makefiles' }} ${options} \ | ||
| cmake -B bld -G ${{ contains(matrix.url, '/winlibs_mingw/') && 'Ninja' || "'MSYS Makefiles'" }} ${options} \ |
There was a problem hiding this comment.
| cmake -B bld -G ${{ contains(matrix.url, '/winlibs_mingw/') && 'Ninja' || "'MSYS Makefiles'" }} ${options} \ | |
| cmake -B bld -G "${{ contains(matrix.url, '/winlibs_mingw/') && 'Ninja' || 'MSYS Makefiles' }}" ${options} \ |
There was a problem hiding this comment.
your way will probably work too
There was a problem hiding this comment.
This is nicer, pushed an update.
Best not to think about the man-years saved if those -G args were just continuous strings with no spaces in them!
There was a problem hiding this comment.
at least you're dealing with quoting in bash, and not cmd. Its quoting rules are really arcane
Yes, missed it initially, edited when realized :) It looks best to leave those jobs
Tried it; it came out around 16-17 seconds with no-install, which makes it not no-install: https://github.com/curl/curl/actions/runs/13465193475/job/37629411220 A surprise takeaway discovery is that one standalone mingw toolchain does come |
|
I was seeing that... It was wasting time messing with the cache that other jobs had made. Maybe |
|
yeah, cache: false got setup-msys2 installing ninja in 6 seconds. https://github.com/jeremyd2019/curl/actions/runs/13466221291/job/37632506461 (that was 55bfd12 on top of 4e2b789) |
|
Analysis of PR #16429 at 216ff80e: Test 2033 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Generated by Testclutch |
|
If you're going to install a bunch of packages, it might turn out to be faster to get rid of release:false and cache:false (though not the first time, as the cache is established) |
setup-msys2 update was released today with new installer |
Seen with downloaded mingw 7.3.0 when built against MSYS2 mbedTLS 3.6.2:
```
lib/vtls/cipher_suite.c: In function 'cs_zip_to_str':
lib/vtls/cipher_suite.c:789:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[1] = ((zip[0] << 4) & 0x3F) | zip[1] >> 4;
^
lib/vtls/cipher_suite.c:790:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[2] = ((zip[1] << 2) & 0x3F) | zip[2] >> 6;
^
lib/vtls/cipher_suite.c:793:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[5] = ((zip[3] << 4) & 0x3F) | zip[4] >> 4;
^
lib/vtls/cipher_suite.c:794:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[6] = ((zip[4] << 2) & 0x3F) | zip[5] >> 6;
^
```
Ref: https://github.com/curl/curl/actions/runs/13719756989/job/38372409927?pr=16429#step:10:21
Cherry-picked from #16429
Closes #16614
For easier integration with msys2.
https://packages.msys2.org/base/mingw-w64-mbedtls ``` D:/a/curl/curl/lib/vtls/wolfssl.c: In function 'wssl_vtls_new_session_cb': D:/a/curl/curl/lib/vtls/wolfssl.c:483:30: error: implicit declaration of function 'wolfSSL_get_app_data'; did you mean 'wolfSSL_get_ex_data'? [-Wimplicit-function-declaration] cf = (struct Curl_cfilter*)wolfSSL_get_app_data(ssl); ^~~~~~~~~~~~~~~~~~~~ wolfSSL_get_ex_data D:/a/curl/curl/lib/vtls/wolfssl.c:483:30: error: nested extern declaration of 'wolfSSL_get_app_data' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c:483:8: error: cast from function call of type 'int' to non-matching type 'struct Curl_cfilter *' [-Werror=bad-function-cast] cf = (struct Curl_cfilter*)wolfSSL_get_app_data(ssl); ^ D:/a/curl/curl/lib/vtls/wolfssl.c:483:8: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] D:/a/curl/curl/lib/vtls/wolfssl.c: In function 'wssl_x509_share_free': D:/a/curl/curl/lib/vtls/wolfssl.c:706:5: error: implicit declaration of function 'wolfSSL_X509_STORE_free'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration] wolfSSL_X509_STORE_free(share->store); ^~~~~~~~~~~~~~~~~~~~~~~ wolfSSL_X509_STORE_CTX_free D:/a/curl/curl/lib/vtls/wolfssl.c:706:5: error: nested extern declaration of 'wolfSSL_X509_STORE_free' [-Werror=nested-externs] [ 33%] Generating CURLOPT_XFERINFOFUNCTION.3, CURLOPT_XOAUTH2_BEARER.3, CURLSHOPT_LOCKFUNC.3, CURLSHOPT_SHARE.3, CURLSHOPT_UNLOCKFUNC.3, CURLSHOPT_UNSHARE.3, CURLSHOPT_USERDATA.3 D:/a/curl/curl/lib/vtls/wolfssl.c: In function 'wssl_set_cached_x509_store': D:/a/curl/curl/lib/vtls/wolfssl.c:786:6: error: implicit declaration of function 'wolfSSL_X509_STORE_up_ref'; did you mean 'wolfSSL_X509_STORE_CTX_free'? [-Wimplicit-function-declaration] if(wolfSSL_X509_STORE_up_ref(store)) { ^~~~~~~~~~~~~~~~~~~~~~~~~ wolfSSL_X509_STORE_CTX_free D:/a/curl/curl/lib/vtls/wolfssl.c:786:6: error: nested extern declaration of 'wolfSSL_X509_STORE_up_ref' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c: In function 'Curl_wssl_setup_x509_store': D:/a/curl/curl/lib/vtls/wolfssl.c:831:6: error: implicit declaration of function 'wolfSSL_CTX_get_cert_store'; did you mean 'wolfSSL_CTX_get_mode'? [-Wimplicit-function-declaration] wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ wolfSSL_CTX_get_mode D:/a/curl/curl/lib/vtls/wolfssl.c:831:6: error: nested extern declaration of 'wolfSSL_CTX_get_cert_store' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c:831:48: error: comparison between pointer and integer wolfSSL_CTX_get_cert_store(wssl->ssl_ctx) == cached_store) { ^~ D:/a/curl/curl/lib/vtls/wolfssl.c:835:5: error: implicit declaration of function 'wolfSSL_CTX_set_cert_store'; did you mean 'wolfSSL_CTX_save_cert_cache'? [-Wimplicit-function-declaration] wolfSSL_CTX_set_cert_store(wssl->ssl_ctx, cached_store); ^~~~~~~~~~~~~~~~~~~~~~~~~~ wolfSSL_CTX_save_cert_cache D:/a/curl/curl/lib/vtls/wolfssl.c:835:5: error: nested extern declaration of 'wolfSSL_CTX_set_cert_store' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c:840:33: error: implicit declaration of function 'wolfSSL_X509_STORE_new'; did you mean 'wolfSSL_X509_STORE_CTX_new'? [-Wimplicit-function-declaration] WOLFSSL_X509_STORE *store = wolfSSL_X509_STORE_new(); ^~~~~~~~~~~~~~~~~~~~~~ wolfSSL_X509_STORE_CTX_new D:/a/curl/curl/lib/vtls/wolfssl.c:840:33: error: nested extern declaration of 'wolfSSL_X509_STORE_new' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c:840:33: error: initialization makes pointer from integer without a cast [-Wint-conversion] [ 33%] Built target generate-curl.1 D:/a/curl/curl/lib/vtls/wolfssl.c:854:32: error: initialization makes pointer from integer without a cast [-Wint-conversion] WOLFSSL_X509_STORE *store = wolfSSL_CTX_get_cert_store(wssl->ssl_ctx); ^~~~~~~~~~~~~~~~~~~~~~~~~~ D:/a/curl/curl/lib/vtls/wolfssl.c: In function 'Curl_wssl_ctx_init': D:/a/curl/curl/lib/vtls/wolfssl.c:1117:11: error: implicit declaration of function 'wolfSSL_CTX_set1_curves_list'; did you mean 'wolfSSL_CTX_set_cipher_list'? [-Wimplicit-function-declaration] if(!wolfSSL_CTX_set1_curves_list(wctx->ssl_ctx, curves)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ wolfSSL_CTX_set_cipher_list D:/a/curl/curl/lib/vtls/wolfssl.c:1117:11: error: nested extern declaration of 'wolfSSL_CTX_set1_curves_list' [-Werror=nested-externs] D:/a/curl/curl/lib/vtls/wolfssl.c:1288:3: error: implicit declaration of function 'wolfSSL_set_app_data'; did you mean 'wolfSSL_set_ex_data'? [-Wimplicit-function-declaration] wolfSSL_set_app_data(wctx->ssl, ssl_user_data); ^~~~~~~~~~~~~~~~~~~~ wolfSSL_set_ex_data D:/a/curl/curl/lib/vtls/wolfssl.c:1288:3: error: nested extern declaration of 'wolfSSL_set_app_data' [-Werror=nested-externs] ``` https://github.com/curl/curl/actions/runs/13713131802/job/38353245932#step:10:20
|
Thanks @jeremyd2019 for your help, much appreciated! This is merged now. |
|
Cool. If you end up installing a lot of packages, it may end up being faster to take out the |
Seen with downloaded mingw 7.3.0 when built against MSYS2 mbedTLS 3.6.2:
```
lib/vtls/cipher_suite.c: In function 'cs_zip_to_str':
lib/vtls/cipher_suite.c:789:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[1] = ((zip[0] << 4) & 0x3F) | zip[1] >> 4;
^
lib/vtls/cipher_suite.c:790:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[2] = ((zip[1] << 2) & 0x3F) | zip[2] >> 6;
^
lib/vtls/cipher_suite.c:793:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[5] = ((zip[3] << 4) & 0x3F) | zip[4] >> 4;
^
lib/vtls/cipher_suite.c:794:16: error: conversion to 'uint8_t {aka unsigned char}' from 'int' may alter its value [-Werror=conversion]
indexes[6] = ((zip[4] << 2) & 0x3F) | zip[5] >> 6;
^
```
Ref: https://github.com/curl/curl/actions/runs/13719756989/job/38372409927?pr=16429#step:10:21
Cherry-picked from curl#16429
Closes curl#16614
- enable zstd in Cygwin and MSYS jobs. - dl-mingw: use Ninja in the 9.5.0 (winlibs-mingw) job. The download package is shipping with it. Saves 15s build time. Keep testing GNU Makefiles with the two mingw-builds jobs. - dl-mingw: split `env` prop to `env` and `ver` to aid integrating with MSYS2. - dl-mingw: install MSYS2 with options to make it quick (<20s). It allows to use MSYS2 dependency packages with the downloaded toolchains. It also makes configuration cleaner. Install libpsl. - dl-mingw: enable mbedTLS in the 7.3.0 job. (OpenSSL took a long time to install, wolfSSL misses features.) Assisted-by: Jeremy Drake Closes curl#16429
To inherit MSYS2 environment, which is now pre-installed on Windows ARM64 runners. Saving ~30s in the MSYS2 install step. Ref: https://github.com/actions/runner-images/blob/main/images/windows/Windows11-Arm64-Readme.md Follow-up to be718da #17067 Follow-up to 27d2469 #16429 Closes #23190
The download package is shipping with it. Saves 15s build time.
Keep testing GNU Makefiles with the two mingw-builds jobs.
envprop toenvandverto aid integrating withMSYS2.
It allows to use MSYS2 dependency packages with the downloaded
toolchains. It also makes configuration cleaner. Install libpsl.
(OpenSSL took a long time to install, wolfSSL misses features.)
Assisted-by: Jeremy Drake
The difference is that they'd keep using the downloaded toolchain,
instead of the built-in one. [FUTURE maybe]