ci: add rust CI pipeline

This commit is contained in:
Valerio Ageno
2024-06-16 10:16:43 +02:00
parent 3de9d1be66
commit 476fae0e70
+24
View File
@@ -0,0 +1,24 @@
name: Cargo build and test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Build and test rust crates
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose