From 0cf97b01ccbe2cec890d327f92a5c39455f244cc Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:23:33 -0800 Subject: [PATCH] feat: build erlang with all cores --- .github/workflows/test-plugins.yml | 6 +++--- src/plugins/core/erlang.rs | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-plugins.yml b/.github/workflows/test-plugins.yml index e55182a68b..6f0ff4ad71 100644 --- a/.github/workflows/test-plugins.yml +++ b/.github/workflows/test-plugins.yml @@ -57,12 +57,12 @@ jobs: - plugin: direnv command: mise exec direnv@latest -- direnv --version - plugin: erlang - command: mise exec erlang@24.3.4.9 -- erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell + command: mise exec erlang@27.2 -- erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell - plugin: elixir command: | - mise use --global erlang@24.3.4.9 + mise use --global erlang@27.2 eval "$(mise env bash)" - mise use --global elixir + mise use --global elixir@1.17.3 eval "$(mise env bash)" mise exec -- elixir --version - plugin: golang diff --git a/src/plugins/core/erlang.rs b/src/plugins/core/erlang.rs index 5b9e08f834..ae87817149 100644 --- a/src/plugins/core/erlang.rs +++ b/src/plugins/core/erlang.rs @@ -52,7 +52,6 @@ impl ErlangPlugin { self.install_kerl()?; cmd!(self.kerl_path(), "update", "releases") .env("KERL_BASE_DIR", self.kerl_base_dir()) - .stdout_to_stderr() .run()?; Ok(()) } @@ -73,7 +72,7 @@ impl ErlangPlugin { ctx: &InstallContext, mut tv: ToolVersion, ) -> Result> { - if SETTINGS.erlang.compile == Some(false) { + if SETTINGS.erlang.compile == Some(true) { return Ok(None); } let release_tag = format!("OTP-{}", tv.version); @@ -126,7 +125,7 @@ impl ErlangPlugin { tv.install_path() ) .env("KERL_BASE_DIR", self.ba.cache_path.join("kerl")) - .stdout_to_stderr() + .env("MAKEFLAGS", format!("-j{}", num_cpus::get())) .run()?; } }