Make separate envs for try and auto builds

This commit is contained in:
Jakub Beránek 2024-04-23 08:55:35 +02:00
parent 2f2d59dd06
commit 162892b030
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B
2 changed files with 10 additions and 3 deletions

View File

@ -81,9 +81,9 @@ def calculate_jobs(job_type: JobType, job_data: Dict[str, Any]) -> List[Dict[str
if job_type == JobType.PR:
return add_base_env(name_jobs(job_data["pr"], "PR"), job_data["envs"]["pr"])
elif job_type == JobType.Try:
return add_base_env(name_jobs(job_data["try"], "try"), job_data["envs"]["production"])
return add_base_env(name_jobs(job_data["try"], "try"), job_data["envs"]["try"])
elif job_type == JobType.Auto:
return add_base_env(name_jobs(job_data["auto"], "auto"), job_data["envs"]["production"])
return add_base_env(name_jobs(job_data["auto"], "auto"), job_data["envs"]["auto"])
return []

View File

@ -39,6 +39,7 @@ runners:
envs:
production:
&production
DEPLOY_BUCKET: rust-lang-ci2
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
TOOLSTATE_PUBLISH: 1
@ -51,6 +52,13 @@ envs:
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
AWS_REGION: us-west-1
try:
<<: *production
DIST_TRY_BUILD: 1
auto:
<<: *production
pr:
PR_CI_JOB: 1
@ -76,7 +84,6 @@ pr:
try:
- image: dist-x86_64-linux
env:
DIST_TRY_BUILD: 1
CODEGEN_BACKENDS: llvm,cranelift
<<: *job-linux-16c