diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index dba2d2d..b6b1928 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -21,7 +21,7 @@ jobs: - name: Run Wasm Plugin run: | fluentci run --wasm bun install - fluentci run --wasm . exec_lane android buildRelease + fluentci run --wasm . android buildRelease working-directory: example - name: Run Dagger Pipelines diff --git a/.github/workflows/zenith.yml b/.github/workflows/zenith.yml index 49c4c36..bf00fc1 100644 --- a/.github/workflows/zenith.yml +++ b/.github/workflows/zenith.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - name: Setup Dagger Zenith run: | - curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.11.7 sh + curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.12.4 sh sudo mv bin/dagger /usr/local/bin dagger version - name: Run Dagger Pipelines diff --git a/fluentci.toml b/fluentci.toml index 7c2a875..faac962 100644 --- a/fluentci.toml +++ b/fluentci.toml @@ -5,4 +5,4 @@ authors = [ description = "CI/CD Plugin for Fastlane" license = "MIT" name = "fastlane" -version = "0.11.2" +version = "0.11.3" diff --git a/plugin/Cargo.lock b/plugin/Cargo.lock index 5d4ab8f..401c92c 100644 --- a/plugin/Cargo.lock +++ b/plugin/Cargo.lock @@ -124,7 +124,7 @@ dependencies = [ [[package]] name = "fastlane" -version = "0.11.2" +version = "0.11.3" dependencies = [ "anyhow", "extism-pdk", diff --git a/plugin/Cargo.toml b/plugin/Cargo.toml index 9a54f5f..a3321d1 100644 --- a/plugin/Cargo.toml +++ b/plugin/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "fastlane" -version = "0.11.2" +version = "0.11.3" [lib] crate-type = ["cdylib"] diff --git a/plugin/src/lib.rs b/plugin/src/lib.rs index 9ebf0d7..2e40a5b 100644 --- a/plugin/src/lib.rs +++ b/plugin/src/lib.rs @@ -16,3 +16,27 @@ pub fn exec_lane(args: String) -> FnResult { .stdout()?; Ok(stdout) } + +#[plugin_fn] +pub fn android(args: String) -> FnResult { + setup_devbox()?; + + let stdout = dag() + .devbox()? + .with_exec(vec!["devbox run -- bundle install"])? + .with_exec(vec!["devbox run -- bundle exec fastlane android", &args])? + .stdout()?; + Ok(stdout) +} + +#[plugin_fn] +pub fn ios(args: String) -> FnResult { + setup_devbox()?; + + let stdout = dag() + .devbox()? + .with_exec(vec!["devbox run -- bundle install"])? + .with_exec(vec!["devbox run -- bundle exec fastlane ios", &args])? + .stdout()?; + Ok(stdout) +}