polyrhythmix/.github/workflows/rust.yml

25 lines
482 B
YAML
Raw Normal View History

name: Cargo Build & Test
2023-06-28 12:06:00 +00:00
on:
push:
pull_request:
env:
2023-06-28 12:06:00 +00:00
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
2023-06-28 12:06:00 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
2023-06-28 12:06:00 +00:00
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose