mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-25 16:34:48 +01:00
28 lines
635 B
YAML
28 lines
635 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- main
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Rust project - latest
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- stable
|
|
# - beta
|
|
# - nightly
|
|
# disable other toolchains to save on github runners
|
|
steps:
|
|
- uses: arduino/setup-protoc@v2
|
|
- uses: actions/checkout@v3
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
- run: cargo build --verbose --all-features
|
|
- run: cargo test --verbose --all-features
|