{"id":18638139,"url":"https://github.com/d33p0st/python-rust-mix-build","last_synced_at":"2025-08-01T05:35:14.047Z","repository":{"id":256420597,"uuid":"855285492","full_name":"d33p0st/python-rust-mix-build","owner":"d33p0st","description":"Build Test for maturin based python-rust mix projects.","archived":false,"fork":false,"pushed_at":"2024-09-12T15:28:06.000Z","size":24551,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T09:21:03.687Z","etag":null,"topics":["actions","build-test","github-actions","python","python-rust","rust"],"latest_commit_sha":null,"homepage":"https://d33p0st.in/documentation/actions/python-rust-mix-build#/actions/","language":"Python","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/d33p0st.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":"2024-09-10T16:12:43.000Z","updated_at":"2024-10-11T06:47:07.000Z","dependencies_parsed_at":"2024-11-07T05:39:29.516Z","dependency_job_id":"6a0e75dd-23a8-4895-a1c4-985df34b4690","html_url":"https://github.com/d33p0st/python-rust-mix-build","commit_stats":null,"previous_names":["d33p0st/python-rust-mix-test","d33p0st/python-rust-mix-build"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d33p0st%2Fpython-rust-mix-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d33p0st%2Fpython-rust-mix-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d33p0st%2Fpython-rust-mix-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d33p0st%2Fpython-rust-mix-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d33p0st","download_url":"https://codeload.github.com/d33p0st/python-rust-mix-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239435390,"owners_count":19638122,"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":["actions","build-test","github-actions","python","python-rust","rust"],"created_at":"2024-11-07T05:39:22.551Z","updated_at":"2025-02-18T08:25:53.040Z","avatar_url":"https://github.com/d33p0st.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Dry Run](https://github.com/d33p0st/python-rust-mix-build/actions/workflows/test.yml/badge.svg)](https://github.com/d33p0st/python-rust-mix-build/actions/workflows/test.yml)\n\n# Overview\n\n`python-rust-mix-build` is a GitHub Action that checks if the Python-Rust mix project passes build or not.\n\n## Usage\n\nTest case usage for `python-rust-mix-build`.\n\n```yaml\nname: Build Test\n\non: [push]\n\njobs:\n    Test:\n        runs-on: ubuntu-latest # multiple can be added\n        steps:\n            - name: Checkout Repo\n              uses: actions/checkout@v3\n\n            - name: Run Build Test\n              uses: d33p0st/python-rust-mix-build@v1\n              with:\n                python-version: 3.9 # set python version. default: 3.12\n                miniconda-version: # set miniconda version. default: \"latest\"\n```\n\n## Requirements\n\nFor this action to work on your Python-Rust mix project, make sure you have `Cargo.toml` and `pyproject.toml` intact and follows the proper rules.\n\n\u003e For Example, the following entries should be there in your Cargo.toml\n\n```toml\n[lib]\ncrate-type = [\"cdylib\"]\n\n[build-dependencies]\ncc = \"1.0\"\n```\n\n\u003e Note: This will not work in pure rust or pure python projects. Make sure you are using `pyo3` crate in rust to create binaries that can be called from a python script or file. Additionaly, `maturin` is being used to test the build which means `pyproject.toml` should have an entry about it.\n\n\u003e A demo [`pyproject.toml`](https://github.com/d33p0st/python-rust-mix-build/blob/main/pyproject.toml) and [`Cargo.toml`](https://github.com/d33p0st/python-rust-mix-build/blob/main/Cargo.toml) is provided [here](https://github.com/d33p0st/python-rust-mix-build).\n\n## Inputs\n\n`python-rust-mix-build` has three inputs:\n\n- `python-version`: specify the python version. Default is `3.12`\n- `miniconda-version`: specify the miniconda version to use as `maturin` needs either venv or miniconda to work. Default is `\"latest\"`\n- `replace`: Takes boolean values. Default is `false`. This builds and pushes that built binary back to the repository.\n  \n  For this to work, add an addition line to your workflow file:\n  ```yaml\n  permissions: write-all\n  ``` \n- `GH_TOKEN`: This takes GITHUB API TOKEN as input, if `permissions: write-all` line is provided, The action will automatically get the GITHUB TOKEN from your account. However, If not provided, `GH_TOKEN` needs to be set with proper permissions.\n\n## Caution\n\nYou need to pull auto-generated commits in case of using `replace` input, Else your repo will mess up.\n\n## Issues\n\nFeel free to submit any issues [here](https://github.com/d33p0st/python-rust-mix-build/issues).\n\n## Pull Requests\n\nCreate any relevant pull requests [here](https://github.com/d33p0st/python-rust-mix-build/pulls).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd33p0st%2Fpython-rust-mix-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd33p0st%2Fpython-rust-mix-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd33p0st%2Fpython-rust-mix-build/lists"}