Softwr

Software Development · head to head

AWS CodeBuild vs GitHub Actions

AWS CodeBuild logo

AWS CodeBuild

Software Development

Pay-per-minute managed build service for compiling, testing and packaging code

From
$0.005/minute
Free plan
No
GitHub Actions logo

GitHub Actions

Software Development

Automate your software workflows

From
Free
Free plan
Yes

The short version

  • GitHub Actions has a free plan, then $4/mo; AWS CodeBuild starts at $0.005/mo.
  • Where AWS CodeBuild falls short: billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests.
  • Where GitHub Actions falls short: private repository usage is capped at 2,000 minutes per month on GitHub Free and 3,000 on Pro and Team, with anything beyond billed.

How do AWS CodeBuild and GitHub Actions differ?

AWS CodeBuild and GitHub Actions differ on starting price ($0.005/minute against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS CodeBuild and GitHub Actions actually diverge.

Attributes where AWS CodeBuild and GitHub Actions differ
AttributeAWS CodeBuildGitHub Actions
Starting price$0.005/minuteFree
Pricing modelPer build minute by instance typeSubscription
Free tierNoYes
PlatformsWeb, Linux, WindowsWeb

Not yet recorded: category for AWS CodeBuild, founded for AWS CodeBuild.

Which features does each one have?

They share no listed features; 6 appear only for AWS CodeBuild. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS CodeBuild

  • Managed build environments
  • Lambda and EC2 compute
  • Reserved capacity
  • Buildspec files
  • Caching
  • GitHub Actions runners

Only in GitHub Actions

Nothing recorded that AWS CodeBuild does not also cover.

What is each one used for?

AWS CodeBuild is most often brought in for building and pushing container images to Amazon ECR from a CodePipeline stage; GitHub Actions for running CI builds and tests on pushes and pull requests. The jobs each tool is most often brought in to do.

AWS CodeBuild

  • Building and pushing container images to Amazon ECR from a CodePipeline stagenot GitHub Actions
  • Running unit tests in parallel across many ephemeral containersnot GitHub Actions
  • Self-hosted GitHub Actions runners that need IAM access to AWS resourcesnot GitHub Actions
  • Compiling for Arm using cheaper Graviton-based build instancesnot GitHub Actions

GitHub Actions

  • Running CI builds and tests on pushes and pull requestsnot AWS CodeBuild
  • Automating releases, container image builds and deployments from a repositorynot AWS CodeBuild
  • Scheduled maintenance jobs and repository automationnot AWS CodeBuild

Where do AWS CodeBuild and GitHub Actions fall short?

AWS CodeBuild's most cited limit: billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests. GitHub Actions's: artifact storage is only 500 MB on GitHub Free and 2 GB on Team, and it is shared with GitHub Packages storage. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CodeBuild

  • Each build starts from a clean environment, so dependency installs and image pulls repeat unless caching is configured, which inflates build minutes
  • Billing is rounded per minute on EC2 compute, so many short jobs cost more than their actual run time suggests
  • There is no built-in repository, pipeline UI or code review, so you need CodePipeline or a third-party system to trigger and track releases
  • Windows and larger instance types cost several times the Linux small rate, and the pricing table has dozens of instance rows to compare
  • Debugging a failed build is slower than on a local runner because you rely on logs or session manager rather than a persistent machine

GitHub Actions

  • Private repository usage is capped at 2,000 minutes per month on GitHub Free and 3,000 on Pro and Team, with anything beyond billed
  • Artifact storage is only 500 MB on GitHub Free and 2 GB on Team, and it is shared with GitHub Packages storage
  • Larger runners are always charged for, even on public repositories and even when plan quota remains
  • Windows runners cost $0.010 per minute against $0.006 for a 2-core Linux runner, so the same workflow costs more per platform
  • macOS runners are charged at a higher per-minute rate than Linux runners
  • Failed runs consume minutes, so a job that fails after 5 minutes and is re-run for 10 uses 15 minutes of quota
  • Storage is billed on hourly accrual in GB-Hours, so deleting artifacts stops future charges but does not remove charges already accrued in the cycle
  • Cache storage is a separate 10 GB per repository allowance and peak hourly usage above it is charged
  • Minutes are charged to the repository owner, not the person who triggered the run, and anyone with write access can trigger runs
  • Without a valid payment method on file, workflows are blocked as soon as the quota is exhausted

How much do AWS CodeBuild and GitHub Actions cost?

AWS CodeBuild starts at $0.005/mo; GitHub Actions has a free plan, with paid plans from $4/mo. Plan by plan below, from each vendor's own pricing page.

AWS CodeBuild

$0.005/minute
  • Linux general1.small$0.005/minute
    • 3 GB memory, 2 vCPUs
    • 100 free build minutes per month on general1.small or arm1.small
  • Linux general1.large$0.02/minute
    • 15 GB memory, 8 vCPUs
    • general1.2xlarge is $0.20 per minute
  • Lambda compute$0.00001/second
    • Billed per second from $0.00001 (1 GB Arm) to $0.0002 (10 GB x86-64)
    • Suited to short builds

GitHub Actions

Free
  • FreeFree
    • 2,000 CI/CD minutes per month
    • Free for public repositories
  • Team$4/mo
    • 3,000 CI/CD minutes per month
    • Free for public repositories
    • First 12 months at promotional rate
  • Enterprise$21/mo
    • 50,000 CI/CD minutes per month
    • Free for public repositories
    • First 12 months at promotional rate

Which should you pick?

Choose AWS CodeBuild if

  • You need managed build environments.
  • You work on Web, Linux, Windows.
  • You also want lambda and ec2 compute.

Choose GitHub Actions if

  • You want to start without paying.

Questions people ask

Is AWS CodeBuild or GitHub Actions better?
It depends on the job. AWS CodeBuild fits building and pushing container images to Amazon ECR from a CodePipeline stage; GitHub Actions fits running CI builds and tests on pushes and pull requests. AWS CodeBuild starts at $0.005/minute and GitHub Actions at Free.
Which is cheaper, AWS CodeBuild or GitHub Actions?
GitHub Actions has a free tier; the other does not. Paid plans start at $0.005/minute for AWS CodeBuild and Free for GitHub Actions.
Does AWS CodeBuild or GitHub Actions run on more platforms?
AWS CodeBuild runs on Web, Linux, Windows. GitHub Actions runs on Web.
Can I use GitHub Actions for free?
Yes. GitHub Actions has a free tier, so you can try it without paying. AWS CodeBuild starts at $0.005/minute.
What is AWS CodeBuild best used for?
AWS CodeBuild is most often used for building and pushing container images to amazon ecr from a codepipeline stage, running unit tests in parallel across many ephemeral containers, self-hosted github actions runners that need iam access to aws resources, compiling for arm using cheaper graviton-based build instances. Of those, building and pushing container images to amazon ecr from a codepipeline stage and running unit tests in parallel across many ephemeral containers are not what GitHub Actions is typically brought in for.
What can AWS CodeBuild do that GitHub Actions cannot?
AWS CodeBuild covers Managed build environments, Lambda and EC2 compute, Reserved capacity, Buildspec files.

Answered from the vendors’ own pages

AWS CodeBuild: How much does CodeBuild cost?

Linux general1.small is $0.005 per build minute, general1.medium $0.01 and general1.large $0.02, per the AWS pricing page. 100 build minutes per month on small instances are free.

GitHub Actions: How much does GitHub Actions cost?

GitHub Actions is free for public repositories. For private repositories, the Team plan costs $4 per user per month (first 12 months) with 3,000 CI/CD minutes, and the Enterprise plan costs $21 per user per month (first 12 months) with 50,000 CI/CD minutes.

Source
AWS CodeBuild: Does CodeBuild replace Jenkins?

It replaces the build agents, not the orchestration. You still need CodePipeline, webhooks or another trigger for pipeline logic.

GitHub Actions: Is there a free version of GitHub Actions?

Yes, GitHub Actions is free for all public repositories. The Free plan for private repositories includes 2,000 CI/CD minutes per month. All tiers include free CI/CD minutes for public repository workflows.

Source
AWS CodeBuild: Can CodeBuild run GitHub Actions?

Yes. CodeBuild can act as managed runners for GitHub Actions workflows, billed at CodeBuild compute rates.

GitHub Actions: What does the Team plan add to GitHub Actions?

The Team plan provides 3,000 CI/CD minutes per month compared to 2,000 on the Free plan. It costs $4 per user per month for the first 12 months. Minutes apply only to private repository workflows.

Source
Share

Related pages

Other head to heads