mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
- cmake: do not build examples automatically. This makes the `BUILD_EXAMPLES=OFF` option redundant. - cmake: build all examples with target `libssh2-examples`. - cmake: build-test all examples with target `libssh2-examples-build`. To save linking them 23 times in CI. - autotools: add root `examples` build target to build examples. - CI: build examples in a separate step. (for autotools, make them not build in the main build step by configuring with `--disable-examples-build`) To make the build more transparent, scale better, be faster in CI, also syncing with curl. Slight downsides after this patch: - cmake and autotools have different default behavior for building examples. - cmake needs an extra step to build examples. (an explicit option is planned to restore the old behavior.) Also: - sync BSD matrix build-tool naming with rest of jobs. Closes #2276