From ce91c66168131ca486a724743f87f37c1ae5810e Mon Sep 17 00:00:00 2001 From: trevyn Date: Wed, 19 Oct 2022 13:48:44 +0400 Subject: [PATCH] Add a Rust example --- README.md | 4 +++- Rust/.woodpecker.yml | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Rust/.woodpecker.yml diff --git a/README.md b/README.md index f7ea8e1..b8446c2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,9 @@ Pull requests are accepted/welcome. | [Hugo/hugo.yml](Hugo/hugo.yml) | Markdown | Hugo | CI step to build static website files and publish them to Codeberg Pages with Hugo | | [Docker/kaniko.yml](Docker/kaniko.yml) | Dockerfile | [Kaniko][1] | Minimalistic CI pipeline with clear instructions to push a Docker image | | [Docker/buildx.yml](Docker/buildx.yml) | Dockerfile | [buildx][2] | Build and publish Docker images for multiple architectures on codeberg | -|[Python/.woodpecker.yml](Python)| Python | Python venv| Standard CI pipeline to test Python packages code on multiple Python distributions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git)| +| [Python/.woodpecker.yml](Python) | Python | Python venv | Standard CI pipeline to test Python packages code on multiple Python distributions. For details check [serial-sphinx](https://codeberg.org/sail.black/serial-sphinx.git) | +| [Rust/.woodpecker.yml](Rust) | Rust | cargo | Simple CI pipeline to run cargo commands | + # More: https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1 diff --git a/Rust/.woodpecker.yml b/Rust/.woodpecker.yml new file mode 100644 index 0000000..a47b575 --- /dev/null +++ b/Rust/.woodpecker.yml @@ -0,0 +1,11 @@ +matrix: + RUST: [stable, beta, nightly] + +pipeline: + test: + image: rust + environment: [CARGO_TERM_COLOR=always] + commands: + - rustup default $RUST + - cargo check + - cargo test