Skip to content

Commit

Permalink
feat: add android and ios functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 6, 2024
1 parent ed22f9d commit a7b33a4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zenith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fluentci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = [
description = "CI/CD Plugin for Fastlane"
license = "MIT"
name = "fastlane"
version = "0.11.2"
version = "0.11.3"
2 changes: 1 addition & 1 deletion plugin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "fastlane"
version = "0.11.2"
version = "0.11.3"

[lib]
crate-type = ["cdylib"]
Expand Down
24 changes: 24 additions & 0 deletions plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,27 @@ pub fn exec_lane(args: String) -> FnResult<String> {
.stdout()?;
Ok(stdout)
}

#[plugin_fn]
pub fn android(args: String) -> FnResult<String> {
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<String> {
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)
}

0 comments on commit a7b33a4

Please sign in to comment.