rs-basic/.gitea/workflows/cargo.yaml

24 lines
531 B
YAML
Raw Normal View History

2024-01-10 20:47:44 +01:00
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: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -y
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo check --verbose
- run: cargo build --verbose
- run: cargo test --verbose