rs-basic/.gitea/workflows/cargo.yaml
PlexSheep 0251b42998
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 44s
add cargo workflow
2024-01-10 21:00:17 +01:00

23 lines
603 B
YAML

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- run: rustupsh=$(mktemp); curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $rustupsh && sh $rustupsh -y
- run: source "$HOME/.cargo/env" && rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo check --verbose
- run: cargo build --verbose
- run: cargo test --verbose