We currently have the issue that our macOS builds are being hosted by both Apple M1 and M4 runners. By default, these target `-mcpu=apple-m1` and `-mcpu=apple-m3` respectively, causing their ccache artifacts to be incompatible and effectively thrashing each other's ccache cache on each run. Add a new CMake option `ENABLE_CI_BASELINE_CPU` that toggles a baseline `-mcpu/-march` compile option for each of the supported build platforms. When disabled (the default), we now default to `-march=native` which on Linux could theoretically lead to better performance. The new CPU baseline is used by the `lagom-template.yml` and `js-and-wasm-artifacts.yml` workflows, since they both produce artifacts or caches that might be picked up by other runners. We also enable it for Flatpak builds, so they target a fixed architecture instead of whatever architecture the action runner that picked up the job has. |
||
|---|---|---|
| .. | ||
| actions | ||
| ISSUE_TEMPLATE | ||
| workflows | ||
| CODEOWNERS | ||
| dependabot.yml | ||
| FUNDING.yml | ||