Skip to content

Add a GHA workflow to test our CMake build #1614

@finagolfin

Description

@finagolfin

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-path flags 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.

Metadata

Metadata

Assignees

Labels

bug🪲 Something isn't workingbuild🧱 Affects the project's build configuration or processgithub_actionsPull requests that update GitHub Actions codemacros🔭 Related to Swift macros such as @Test or #expect

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions