31 lines
No EOL
613 B
YAML
31 lines
No EOL
613 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Rust project - latest
|
|
runs-on: node-bookworm
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- nightly
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: ls . && pwd && whoami
|
|
shell: bash
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/
|
|
key: ${{ runner.os }}-cargo
|
|
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: nightly
|
|
|
|
- run: cargo test --all-features |