{"id":21393427,"url":"https://github.com/panghu-huang/astro-run","last_synced_at":"2025-09-25T19:31:35.798Z","repository":{"id":189164752,"uuid":"674198623","full_name":"panghu-huang/astro-run","owner":"panghu-huang","description":"A highly extensible runner that can execute any workflow.","archived":false,"fork":false,"pushed_at":"2024-07-20T01:33:56.000Z","size":339,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-08T20:28:08.726Z","etag":null,"topics":["astro-run","automation","ci","docker","grpc","runner","rust","workflow"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panghu-huang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-03T11:15:36.000Z","updated_at":"2025-01-16T01:31:14.000Z","dependencies_parsed_at":"2023-12-08T02:25:51.698Z","dependency_job_id":"1b66177b-b2c6-4081-9baa-20c64bd471ac","html_url":"https://github.com/panghu-huang/astro-run","commit_stats":null,"previous_names":["panghu-huang/astro-run"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/panghu-huang/astro-run","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panghu-huang%2Fastro-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panghu-huang%2Fastro-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panghu-huang%2Fastro-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panghu-huang%2Fastro-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panghu-huang","download_url":"https://codeload.github.com/panghu-huang/astro-run/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panghu-huang%2Fastro-run/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274887652,"owners_count":25368319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astro-run","automation","ci","docker","grpc","runner","rust","workflow"],"created_at":"2024-11-22T14:11:51.112Z","updated_at":"2025-09-25T19:31:35.511Z","avatar_url":"https://github.com/panghu-huang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astro run\n\nAstro Run is a highly extensible runner that can execute any workflow.\n\n![astro-run](https://img.shields.io/crates/v/astro-run.svg)\n![CI](https://github.com/panghu-huang/astro-run/actions/workflows/test.yaml/badge.svg)\n[![codecov](https://codecov.io/gh/panghu-huang/astro-run/branch/main/graph/badge.svg?token=B9P3T5C97U)](https://codecov.io/gh/panghu-huang/astro-run)\n![MIT](https://img.shields.io/badge/license-MIT-blue.svg)\n\n## Features\n\n- [Workflow runtime for Docker](https://github.com/panghu-huang/astro-run/blob/main/crates/runner)\n- Support for [gRPC server](https://github.com/panghu-huang/astro-run/blob/main/crates/server) to coordinate multiple runner clients\n- Support for [connecting to remote runners](https://github.com/panghu-huang/astro-run/blob/main/crates/remote-runner)\n\n## Example\n\n### Dependencies\n\nAdd the following to your `Cargo.toml` file:\n\n```toml\n[dependencies]\nastro-run = \"0.1\"\n```\n\n### Code Example\n\n```rust\nuse astro_run::{stream, AstroRun, RunResult, Workflow};\n\nstruct Runner;\n\nimpl Runner {\n  fn new() -\u003e Self {\n    Runner\n  }\n}\n\n#[astro_run::async_trait]\nimpl astro_run::Runner for Runner {\n  async fn run(\u0026self, ctx: astro_run::Context) -\u003e astro_run::RunResponse {\n    let (tx, rx) = stream();\n\n    tokio::task::spawn(async move {\n      // Send running log\n      tx.log(ctx.command.run);\n\n      // Send success log\n      tx.end(RunResult::Succeeded);\n    });\n\n    Ok(rx)\n  }\n}\n\n#[tokio::main]\nasync fn main() {\n  // Create astro run\n  let astro_run = AstroRun::builder().runner(Runner::new()).build();\n\n  // Workflow\n  let workflow = r#\"\njobs:\n  job:\n    name: Job\n    steps:\n      - run: Hello World\n  \"#;\n\n  // Create workflow\n  let workflow = Workflow::builder()\n    .config(workflow)\n    .build(\u0026astro_run)\n    .await\n    .unwrap();\n\n  // Create a new execution context\n  let ctx = astro_run.execution_context().build();\n\n  // Run workflow\n  let _res = workflow.run(ctx).await;\n}\n```\n\nAstro Run only defines the interface for Runners. Users can implement their own desired Runners, e.g., [Docker runner](https://github.com/panghu-huang/astro-run/tree/main/crates/runner).\n\n## More Examples\n\n- [Workflow runtime for Docker](https://github.com/panghu-huang/astro-run/blob/main/crates/runner/examples/basic.rs)\n- [Astro Run Plugins](https://github.com/panghu-huang/astro-run/blob/main/crates/astro-run/examples/plugins.rs)\n- [Astro run gRPC Server](https://github.com/panghu-huang/astro-run/blob/main/crates/server/examples/server.rs)\n- [gRPC Runner Client](https://github.com/panghu-huang/astro-run/blob/main/crates/server/examples/client.rs)\n- [Remote Runner](https://github.com/panghu-huang/astro-run/blob/main/crates/remote-runner/examples/runner-server.rs)\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests to improve the project.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanghu-huang%2Fastro-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanghu-huang%2Fastro-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanghu-huang%2Fastro-run/lists"}