Skip to content

Commit

Permalink
feat(codebuild): macOS codebuild support (#31203)
Browse files Browse the repository at this point in the history
### 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>
  • Loading branch information
alanxluc and mergify[bot] authored Aug 23, 2024
1 parent e3351a4 commit 823ff6e
Show file tree
Hide file tree
Showing 14 changed files with 33,809 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 823ff6e

Please sign in to comment.