codemp-nvim/.github/workflows/ci.yml

32 lines
726 B
YAML
Raw Normal View History

2023-08-17 00:27:26 +02:00
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:
2023-08-17 01:40:19 +02:00
- uses: arduino/setup-protoc@v2
2023-08-17 00:27:26 +02:00
- uses: actions/checkout@v3
2023-08-17 01:40:19 +02:00
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.ACTIONS_SSH_DEPLOY_KEY }}
2023-08-17 00:27:26 +02:00
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose