@@ -10,7 +10,7 @@ const CI_DIRECTORY: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/..");
10
10
const DOCKER_DIRECTORY : & str = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../docker" ) ;
11
11
const JOBS_YML_PATH : & str = concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/../github-actions/jobs.yml" ) ;
12
12
13
- /// Representation of a job loaded from the jobs.yml file.
13
+ /// Representation of a job loaded from the `src/ci/github-actions/ jobs.yml` file.
14
14
#[ derive( serde:: Deserialize , Debug , Clone ) ]
15
15
struct Job {
16
16
/// Name of the job, e.g. mingw-check
@@ -86,7 +86,10 @@ fn load_job_db(path: &Path) -> anyhow::Result<JobDatabase> {
86
86
/// Representation of a job outputted to a GitHub Actions workflow.
87
87
#[ derive( serde:: Serialize , Debug ) ]
88
88
struct GithubActionsJob {
89
+ /// The main identifier of the job, used by CI scripts to determine what should be executed.
89
90
name : String ,
91
+ /// Helper label displayed in GitHub Actions interface, containing the job name and a run type
92
+ /// prefix (PR/try/auto).
90
93
full_name : String ,
91
94
os : String ,
92
95
env : HashMap < String , String > ,
@@ -277,7 +280,9 @@ fn calculate_job_matrix(
277
280
RunType :: AutoJob => "auto" ,
278
281
} ;
279
282
280
- eprintln ! ( "Output:\n jobs={jobs:?}\n run_type={run_type}" ) ;
283
+ eprintln ! ( "Output" ) ;
284
+ eprintln ! ( "jobs={jobs:?}" ) ;
285
+ eprintln ! ( "run_type={run_type}" ) ;
281
286
println ! ( "jobs={}" , serde_json:: to_string( & jobs) ?) ;
282
287
println ! ( "run_type={run_type}" ) ;
283
288
0 commit comments