codemp/.github/workflows/ci.yml

29 lines
605 B
YAML
Raw Normal View History

name: Cargo Build & Test
on:
2023-08-16 23:39:50 +02:00
push:
branches:
- dev
- main
env:
2023-08-16 23:39:50 +02:00
CARGO_TERM_COLOR: always
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