Skip to content

Commit 823ff6e

Browse files
feat(codebuild): macOS codebuild support (#31203)
### Issue # (if applicable) Closes #31170. ### Reason for this change CodeBuild recently added support for Mac builds. https://aws.amazon.com/about-aws/whats-new/2024/08/aws-codebuild-mac-builds/ The CDK can to be extended to support Mac CodeBuild fleets, as well as using those fleets in CodeBuild projects. ### Description of changes - Added `MAC_ARM` value to EnvironmentType [enum](https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-codebuild/lib/environment-type.ts) - Added `MacBuildImage` to [project.ts](https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-codebuild/lib/project.ts) All design decisions were made by following the previous precedent set by `LinuxBuildImage` and `WindowsBuildImage`. ### Description of how you validated changes I added unit tests and integration tests for `MacBuildImage`. I ensured that the CDK was able to build, and that the output CloudFormation stack had the correct resources. I also successfully built the Codebuild project that was deployed. ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent e3351a4 commit 823ff6e

File tree

14 files changed

+33809
-5
lines changed

14 files changed

+33809
-5
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-macos-fleet.js.snapshot/MacOsProjectIntegTestDefaultTestDeployAssertB425ECC4.assets.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)