Merge pull request 'Add a Rust example' (#14) from trevyn/examples:rust into main

Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/14
This commit is contained in:
6543 2022-10-19 15:48:39 +02:00
commit e52ab98ccd
2 changed files with 14 additions and 1 deletions

View File

@ -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

11
Rust/.woodpecker.yml Normal file
View File

@ -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