-
Notifications
You must be signed in to change notification settings - Fork 146
Add a GHA workflow to test our CMake build #1614
Copy link
Copy link
Open
Labels
bug🪲 Something isn't working🪲 Something isn't workingbuild🧱 Affects the project's build configuration or process🧱 Affects the project's build configuration or processgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codemacros🔭 Related to Swift macros such as @Test or #expect🔭 Related to Swift macros such as @Test or #expect
Milestone
Metadata
Metadata
Assignees
Labels
bug🪲 Something isn't working🪲 Something isn't workingbuild🧱 Affects the project's build configuration or process🧱 Affects the project's build configuration or processgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codemacros🔭 Related to Swift macros such as @Test or #expect🔭 Related to Swift macros such as @Test or #expect
Description
#1523 was recently merged, then broke the macOS trunk snapshot toolchain CI, because it was using macros that aren't there yet when building the toolchain, which had to be fixed in #1609.
This probably wasn't detected during PR testing because all the current PR CI jobs are using the macros from a prebuilt toolchain instead.
Reproduction
Do what the linked CI job does, ie build fresh macOS toolchain using macros as in #1523
Expected behavior
CI to catch such regressions
Environment
macOS
Additional information
It may be possible to set up a PR CI job with the prebuilt nightly snapshot toolchain and
build-script, by passing in the prebuilt toolchain using the--skip-build-swift --native-swift-tools-pathflags and building and installing this repo and its macros using that script alone, as the toolchain CI does in fuller form after a bunch of pulls are merged every day.This would warn about such build errors before such pulls are merged.