Skip to content

Commit

Permalink
Merge pull request #643 from rust-lang/feat-ci-staging-add-rust-lang-…
Browse files Browse the repository at this point in the history
…ci-codebuild-project

feat(ci-staging): add rust-lang-ci codebuild project
  • Loading branch information
MarcoIeni authored Dec 5, 2024
2 parents 406e21c + bdf2d46 commit b98b3f3
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions terragrunt/modules/ci-runners/codebuild.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,50 @@ resource "aws_codebuild_project" "ubuntu_small" {
}
}
}

resource "aws_codebuild_project" "ubuntu_24_4c" {
name = "ubuntu-24-4c"
service_role = aws_iam_role.codebuild_role.arn

artifacts {
type = "NO_ARTIFACTS"
}

cache {
type = "NO_CACHE"
// TODO: evaluate if it's worth adding cache
// modes = ["LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE"]
}

environment {
compute_type = "BUILD_GENERAL1_MEDIUM"
// ubuntu
image = "aws/codebuild/standard:7.0-24.10.29"
type = "LINUX_CONTAINER"
image_pull_credentials_type = "CODEBUILD"

// Whether to enable running the Docker daemon.
// The Rust CI uses Docker to build linux artifacts,
// so we need this if the target is linux.
privileged_mode = true
}

// Disable cloudwatch logs for cost saving.
// Logs are available in GitHub Actions.
logs_config {
cloudwatch_logs {
status = "DISABLED"
}
}

source {
type = "GITHUB"
// test repository
location = "https://github.com/rust-lang-ci/rust"
git_clone_depth = 1

git_submodules_config {
fetch_submodules = false
}
}
}

0 comments on commit b98b3f3

Please sign in to comment.