@@ -1146,8 +1146,6 @@ HELP: to skip test's attempt to check tidiness, pass `--skip src/tools/tidy` to
11461146 builder. info ( "tidy check" ) ;
11471147 builder. run_delaying_failure ( & mut cmd) ;
11481148
1149- builder. ensure ( ExpandYamlAnchors ) ;
1150-
11511149 builder. info ( "x.py completions check" ) ;
11521150 let [ bash, zsh, fish, powershell] = [ "x.py.sh" , "x.py.zsh" , "x.py.fish" , "x.py.ps1" ]
11531151 . map ( |filename| builder. src . join ( "src/etc/completions" ) . join ( filename) ) ;
@@ -1175,39 +1173,6 @@ HELP: to skip test's attempt to check tidiness, pass `--skip src/tools/tidy` to
11751173 }
11761174}
11771175
1178- #[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
1179- pub struct ExpandYamlAnchors ;
1180-
1181- impl Step for ExpandYamlAnchors {
1182- type Output = ( ) ;
1183- const ONLY_HOSTS : bool = true ;
1184-
1185- /// Ensure the `generate-ci-config` tool was run locally.
1186- ///
1187- /// The tool in `src/tools` reads the CI definition in `src/ci/builders.yml` and generates the
1188- /// appropriate configuration for all our CI providers. This step ensures the tool was called
1189- /// by the user before committing CI changes.
1190- fn run ( self , builder : & Builder < ' _ > ) {
1191- // NOTE: `.github/` is not included in dist-src tarballs
1192- if !builder. src . join ( ".github/workflows/ci.yml" ) . exists ( ) {
1193- builder. info ( "Skipping YAML anchors check: GitHub Actions config not found" ) ;
1194- return ;
1195- }
1196- builder. info ( "Ensuring the YAML anchors in the GitHub Actions config were expanded" ) ;
1197- builder. run_delaying_failure (
1198- builder. tool_cmd ( Tool :: ExpandYamlAnchors ) . arg ( "check" ) . arg ( & builder. src ) ,
1199- ) ;
1200- }
1201-
1202- fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
1203- run. path ( "src/tools/expand-yaml-anchors" )
1204- }
1205-
1206- fn make_run ( run : RunConfig < ' _ > ) {
1207- run. builder . ensure ( ExpandYamlAnchors ) ;
1208- }
1209- }
1210-
12111176fn testdir ( builder : & Builder < ' _ > , host : TargetSelection ) -> PathBuf {
12121177 builder. out . join ( host. triple ) . join ( "test" )
12131178}
0 commit comments