Crates.io | rust-ci-cd-template |
lib.rs | rust-ci-cd-template |
version | |
source | src |
created_at | 2024-03-16 09:51:25.143178 |
updated_at | 2024-12-01 01:30:43.120441 |
description | A rust ci/cd template for github |
homepage | |
repository | https://github.com/ameknite/rust-ci-cd-template |
max_upload_size | |
id | 1175533 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Template to maintain a rust project running CI/CD with Github Workflows.
This workflow will run every time you push to main or make a pull request. You can also run the workflow manually in github.
It will run:
[lints.rust]
and [linsts.clippy]
in the Cargo.toml file.
This workflow will only run manually through GitHub.
It will:
You will run this directly in your Github repo -> Section Actions
-> [Main] Build & Release
workflow. -> Run workflow
button.
Here you can do three things to run the workflow:
${MAJOR}.${MINOR}.${PATCH}-${PRE-RELEASE}+${BUILD}
patch
, minor
and major
.none
if you only want the writing version.The two booleans allow you to publish your crate to creates.io and overwrite your tag to add modifications to a release, respectively.
This template includes a setup for dependabot and a workflow for auto-merge.
It will update packages for cargo and github-actions weekly.
For rust:
For github-actions:
This template uses workflow call and workflow dispatch to reuse workflows and be able to run them individually. So you can run various jobs of the ci/cd workflows independently.
Some workflows to consider:
rust-version
in Cargo.tomlSPDX-License-Identifier: CC0-1.0 OR MIT OR Apache-2.0
Licensed under a triple license at your option: