-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(codebuild): macOS codebuild support #31203
Conversation
e39c703
to
788abff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Excited to see this supported.
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
if (buildEnvironment.computeType != ComputeType.MEDIUM) { | ||
errors.push('Mac images only support medium compute type'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alanxluc .. I think this type of validation is that there is a big probability to change, and I think it should not be part of CDK validations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, will revise. Is the other validation good to keep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, they look reasonable. Thanks @alanxluc for your contribution :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one minor comment
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Comments on closed issues and PRs are hard for our team to see. |
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
MAC_ARM
value to EnvironmentType enumMacBuildImage
to project.tsAll design decisions were made by following the previous precedent set by
LinuxBuildImage
andWindowsBuildImage
.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
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license