CI improvements: add macOS runners; build in parallel; disable silent rules#1511
CI improvements: add macOS runners; build in parallel; disable silent rules#1511ryandesign wants to merge 3 commits intoopencog:masterfrom
Conversation
|
I've merged all the other pull reqs, hit the "rerun all tests" button on github, and the macos tests are still failing. I don't particularly want to merge this, until those tests pass. Perhaps a |
This makes it easier to confirm that the right flags are being passed to the compiler.
Also do CI testing on macOS 12, 13, and 14. Not using "macos-latest" because that currently refers to macOS 12 which is not the latest version. It is good to test on multiple versions and on multiple architectures. The macOS 12 and 13 runners are x86_64 while the macOS 14 runner is arm64. This list can be updated annually as new macOS versions are released and old versions are removed from CI, or switched to "macos-latest" once that actually points to the latest version again. Do not fail fast; this ensures that a build failure on one runner does not cancel the other runners so that temporarily expected failures on one runner do not mask unexpected failures on other runners. Use Homebrew (pre-installed on macOS runners) to install dependencies for macOS. Explicitly mention dependencies that are used, like autoconf, automake, and libtool, even if they are in the set of dependencies already pre-installed on the runners, because who knows if that will always be the case. Fixes opencog#1496
Build and test in parallel with as many jobs as we have been allocated CPU cores. This should make CI runs faster and provide visibility to parallel build problems.
|
Hi @ryandesign I replied to #1514 The fix is not hard, and if you ever wanted to learn threading, this would be an excellent starter project. In the meantime, for macos CI, either disable the multi-threading tests or disable testing pcre2. Your pick. The command-line |
This adds a few more improvements to the CI setup:
See the individual commit messages for more specifics.
Fixes #1496