Intégration continue. (#1)

This commit is contained in:
Benjamin Bouvier 2021-09-09 20:05:48 +02:00 committed by GitHub
parent e24587c83f
commit 46ea2190ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

32
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Rust
on:
push:
branches: [ principale ]
pull_request:
branches: [ principale ]
jobs:
ci:
env:
RUST_BACKTRACE: 1
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Lancer les exemples
uses: actions-rs/cargo@v1
with:
command: run