2023-08-16 23:38:34 +02:00
|
|
|
name: Cargo Build & Test
|
|
|
|
|
|
|
|
on:
|
2023-08-16 23:39:50 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
- main
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
env:
|
2023-08-16 23:39:50 +02:00
|
|
|
CARGO_TERM_COLOR: always
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-08-16 23:39:50 +02:00
|
|
|
build_and_test:
|
|
|
|
name: Rust project - latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain:
|
|
|
|
- stable
|
2023-08-16 23:41:57 +02:00
|
|
|
# - beta
|
|
|
|
# - nightly
|
|
|
|
# disable other toolchains to save on github runners
|
2023-08-16 23:39:50 +02:00
|
|
|
steps:
|
2023-08-16 23:48:45 +02:00
|
|
|
- uses: arduino/setup-protoc@v2
|
2023-08-16 23:39:50 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
|
|
- run: cargo build --verbose
|
|
|
|
- run: cargo test --verbose
|