add cargo workflow
Cargo Build & Test / Rust project - latest (stable) (push) Waiting to run Details
Cargo Build & Test / Rust project - latest (beta) (push) Failing after 42s Details
Cargo Build & Test / Rust project - latest (nightly) (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-01-10 20:47:44 +01:00
parent a712e8fb1c
commit 62f5ce1255
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo check --verbose
- run: cargo build --verbose
- run: cargo test --verbose