Skip to content

Commit

Permalink
feat(php): install minimal php extensions
Browse files Browse the repository at this point in the history
feat(php): install minimal php extensions

feat(php): install minimal php extensions

feat(php): install minimal php extensions

feat(php): install minimal php extensions
  • Loading branch information
tsirysndr committed Jul 12, 2024
1 parent e244c19 commit 95cdd16
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion php/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,29 @@ pub fn setup() -> Result<String, Error> {
)])?;
}

let php_extensions = dag().get_env("PHP_EXTENSIONS")?;
if php_extensions.is_empty() {
dag().set_envs(vec![(
"PHP_EXTENSIONS".into(),
"imagick ds pdo_mysql".into(),
)])?;
}

let php_extensions = dag()
.get_env("PHP_EXTENSIONS")?
.split_whitespace()
.map(|ext| format!("php83Extensions.{}", ext))
.collect::<Vec<String>>()
.join(" ");

let stdout = dag()
.flox()?
.with_workdir(".fluentci")?
.with_exec(vec![
"flox",
"install",
&php_extensions,
/*
"php83Extensions.phalcon",
"php83Extensions.imagick",
"php83Extensions.snuffleupagus",
Expand Down Expand Up @@ -144,7 +161,7 @@ pub fn setup() -> Result<String, Error> {
"php83Extensions.pinba",
"php83Extensions.pdlib",
"php83Extensions.apcu",
"php83Extensions.zstd",
"php83Extensions.zstd",*/
"php83Packages.composer",
"php83",
"overmind",
Expand Down

0 comments on commit 95cdd16

Please sign in to comment.