diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8f44509 --- /dev/null +++ b/.github/workflows/main.yml @@ -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