mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 18:34:03 +03:00
CI: Remove Manual Stdlib Compilation (#9033)
CI currently manually compiles standard library. However, this became redundant since the `buildEngineDistribution` included the very same behavior. Because of that, we ended up compiling the libraries twice.
This commit is contained in:
parent
eb59b475f6
commit
cf19115432
@ -517,20 +517,6 @@ impl RunContext {
|
||||
|
||||
// === Build Distribution ===
|
||||
debug!("Building distribution");
|
||||
if self.config.build_engine_package() {
|
||||
let std_libs =
|
||||
&self.repo_root.built_distribution.enso_engine_triple.engine_package.lib.standard;
|
||||
// let std_libs = self.paths.engine.dir.join("lib").join("Standard");
|
||||
// Compile the Standard Libraries (Unix)
|
||||
debug!("Compiling standard libraries under {}", std_libs.display());
|
||||
for entry in ide_ci::fs::read_dir(std_libs)? {
|
||||
let entry = entry?;
|
||||
let target = entry.path().join(self.paths.version().to_string());
|
||||
enso.compile_lib(target)?.run_ok().await?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if self.config.build_native_runner {
|
||||
debug!("Building and testing native engine runners");
|
||||
runner_sanity_test(&self.repo_root, None).await?;
|
||||
|
@ -98,16 +98,6 @@ impl BuiltEnso {
|
||||
Ok(command)
|
||||
}
|
||||
|
||||
pub fn compile_lib(&self, target: impl AsRef<Path>) -> Result<Command> {
|
||||
ide_ci::fs::require_exist(&target)?;
|
||||
let mut command = self.cmd()?;
|
||||
command
|
||||
.arg(IrCaches::Yes)
|
||||
.args(["--no-compile-dependencies", "--no-global-cache", "--compile"])
|
||||
.arg(target.as_ref());
|
||||
Ok(command)
|
||||
}
|
||||
|
||||
pub async fn run_tests(
|
||||
&self,
|
||||
ir_caches: IrCaches,
|
||||
|
Loading…
Reference in New Issue
Block a user