codemp/.github/workflows/ci.yml

32 lines
756 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
2024-02-09 01:26:31 +01:00
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.ACTIONS_SSH_DEPLOY_KEY }}
2023-08-16 23:39:50 +02:00
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
2023-08-21 15:08:48 +02:00
- run: cargo build --verbose --all-features
- run: cargo test --verbose --all-features