codemp/.github/workflows/ci.yml

27 lines
504 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
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose