27 lines
520 B
YAML
27 lines
520 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Build and test - ${{ matrix.toolchain }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Get Rust toolchain
|
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
- run: cargo build
|
|
|