()
| 5785 | } |
| 5786 | |
| 5787 | fn check_no_committed_aot_artifacts() -> Result<()> { |
| 5788 | let tracked = command_output("git", &["ls-files", "crates/aot"], Path::new("."))?; |
| 5789 | let committed_artifacts = tracked |
| 5790 | .lines() |
| 5791 | .filter(|path| path.contains("/artifacts/")) |
| 5792 | .collect::<Vec<_>>(); |
| 5793 | if !committed_artifacts.is_empty() { |
| 5794 | bail!( |
| 5795 | "native AOT artifacts must be generated by CI and must not be committed:\n{}", |
| 5796 | committed_artifacts.join("\n") |
| 5797 | ); |
| 5798 | } |
| 5799 | println!("committed repo contains no native AOT artifact blobs"); |
| 5800 | Ok(()) |
| 5801 | } |
| 5802 | |
| 5803 | fn check_aot_crate_templates(sources: &SourcesManifest) -> Result<()> { |
| 5804 | let expected = supported_aot_targets(); |
no test coverage detected