{"id":28143474,"url":"https://github.com/qroc/cargo-actions","last_synced_at":"2025-05-14T21:18:22.152Z","repository":{"id":42370659,"uuid":"356986803","full_name":"qRoC/cargo-actions","owner":"qRoC","description":"Integration Rust Cargo with GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-11-19T00:30:49.000Z","size":1208,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-14T21:17:36.546Z","etag":null,"topics":["cargo","github","github-actions","infrastructure","rust"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/qRoC.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-04-11T21:48:12.000Z","updated_at":"2024-09-26T14:43:42.000Z","dependencies_parsed_at":"2023-02-06T14:16:02.748Z","dependency_job_id":"54865504-9edd-419d-b877-38ae2fb89e9a","html_url":"https://github.com/qRoC/cargo-actions","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.3571428571428571,"last_synced_commit":"1cf67429677e677601d22ddd6aa2b0ba2237eb98"},"previous_names":["fibiol/cargo-actions"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qRoC%2Fcargo-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qRoC%2Fcargo-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qRoC%2Fcargo-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qRoC%2Fcargo-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qRoC","download_url":"https://codeload.github.com/qRoC/cargo-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227580,"owners_count":22035675,"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","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":["cargo","github","github-actions","infrastructure","rust"],"created_at":"2025-05-14T21:18:21.491Z","updated_at":"2025-05-14T21:18:22.143Z","avatar_url":"https://github.com/qRoC.png","language":"TypeScript","readme":"## Integration Rust Cargo with GitHub Actions\n\n### Overview\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd rowspan=2 width=45% align=center\u003e\n            \u003ch5\u003eGeneral result\u003c/h5\u003e\n            \u003cimg src=\"doc/result.png\" alt=\"General result\"\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ch5\u003eError in code\u003c/h5\u003e\n            \u003cimg src=\"doc/code_error.png\" alt=\"Error in code\"\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ch5\u003eFailed test\u003c/h5\u003e\n            \u003cimg src=\"doc/test_error.png\" alt=\"Failed test\"\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n### Inputs\n\n- **Required** `command`: Cargo command like `build`, `check`, `test`, etc.\n- `args`: Arguments for the cargo command.\n- `manifest-path`: Path to the Cargo.toml. By default, is the working directory.\n- `token`: GitHub token. Used for enable more powerful annotation system. *Strongly recommended**\n- `toolchain`: Toolchain to use. For example: `nightly`.\n\n_* Default GitHub Actions annotations supports only up to 10 warnings and 10 errors for per the step. With `token` you up this limit to `1000`_\n\n### Outputs\n\n- `notice_count`: Notice count.\n- `warning_count`: Warning count.\n- `failure_count`: Failure count.\n\n### Example\n\n```yaml\n\n# if `with.token` is used\npermissions:\n  checks: write\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: qRoC/cargo-actions@v1\n        with:\n          command: build\n          args: --verbose\n          token: ${{ secrets.GITHUB_TOKEN }}\n\n  code_style:\n    continue-on-error: true\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: qRoC/cargo-actions@v1\n        with:\n          command: fmt\n          toolchain: nightly\n          args: --all -- --check\n          token: ${{ secrets.GITHUB_TOKEN }}\n\n  lint:\n    continue-on-error: true\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: qRoC/cargo-actions@v1\n        with:\n          command: clippy\n          args: --all-features --all-targets -- -D warnings\n          token: ${{ secrets.GITHUB_TOKEN }}\n\n  tests:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: qRoC/cargo-actions@v1\n        with:\n          command: test\n          args: --all-features --no-fail-fast --jobs 1\n          token: ${{ secrets.GITHUB_TOKEN }}\n\n  audit:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: qRoC/cargo-actions@v1\n        with:\n          command: audit\n```\n\n### For developers\n\n1. Install the dependencies.\n\n```shell\n$ yarn install\n```\n\n2. Do some changes.\n\n3. Build the typescript and package it for distribution.\n\n```shell\n$ yarn build \u0026\u0026 yarn package\n```\n\n3. Run the tests.\n\n```shell\n$ yarn test\n```\n\n4. Publish changes.\n\n```shell\n$ git add -A\n$ git commit -m \"...\"\n$ git push origin main\n```\n\n5. Move distribution tag.\n\n```shell\ngit tag -fa v1 -m \"Update v1 tag\"\ngit push origin main --force\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqroc%2Fcargo-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqroc%2Fcargo-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqroc%2Fcargo-actions/lists"}