2024-07-27 20:52:36 +00:00
|
|
|
name: Cargo Build & Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
name: Rust project - latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- nightly
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-07-27 20:58:38 +00:00
|
|
|
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
2024-07-27 21:00:14 +00:00
|
|
|
- run: . "$HOME/.cargo/env"
|
2024-07-27 20:52:36 +00:00
|
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
|
|
- run: cargo build --verbose
|
|
|
|
- run: cargo test --verbose
|
|
|
|
|