{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1754511470,"commit_time":1754699263,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"fe5225b5eaf3a1a0ce149023d38a9922a114798b","message":"cmake: optimize building examples in CI\n\nIn CI we want to ensure that examples build cleanly, but we don't want\nto actually run them there. Meaning it's enough to just compile, but not\nlink them in CI. Saving time up to 2-4x (MSVC), and disk space up\nto 1.2GB (or 8-70x).\n\nAdd a new cmake target that compiles all examples without linking them\ninto runnable binaries. Keep a full build for a single example to test\nif it links correctly.\n\nAlso:\n- CI: switch over all `curl-examples` targets to `curl-examples-build`\n- GHA/linux-old: build examples in one of the cmake builds.\n\nResult highlights:\n\nJob                 | Bef. |  Bef. | Aft. | Aft. |\n:------------------ | ---: | ----: | ---: |----: |\ncygwin              |  15s |   9MB |  10s |  1MB |\nmsys                |  13s |   8MB |   7s |  1MB |\ndl-mingw 15         |  39s |  113M |  34s |  2MB |\ndl-mingw 9.5.0      |  49s | 115MB |  42s |  2MB |\ndl-mingw 7.3.0      |  19s | 113MB |  14s |  2MB |\ndl-mingw 6.4.0      |   9s |  12MB |   7s |  4MB |\nLinux cross         |  19s |  28MB |  19s |  2MB |\nMSVC UWP            |  65s | 374MB |   9s | 17MB |\nMSVC x64            |  22s | 846MB |   9s | 17MB |\nVS2010              |  48s | 105MB |  15s |  9MB |\nVS2022 clang-cl     | 195s | 1.2GB |  51s | 20MB |\niOS Xcode           |   8s |       |   5s |      |\nmacOS LibreSSL      |  16s |       |  11s |      |\nLinux aws-lc        |   3s |       |   1s |      |\n\nFollow-up to dda251ef1020da07dc4640a225e01051cb977535 #18232\n\nCloses #18209\n","parents":["869506d2dac1aa0555493f057ed23d5bd5e24ab3"],"tree_hash":"46d9caa24e2f6b6c9915b8fe2be78ee72f833817"}