зеркало из https://github.com/microsoft/auteur.git
chore: set up CI
This commit is contained in:
Родитель
7eec04faa9
Коммит
09adb93c1d
|
@ -0,0 +1,44 @@
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
name: CI
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mathieudu/gstreamer-auteur:latest
|
||||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- stable
|
||||
- nightly
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
components: clippy
|
||||
- run: cargo clippy -- -D warnings
|
||||
- run: cargo check
|
||||
- name: run tests
|
||||
run: cargo test
|
||||
|
||||
fmt:
|
||||
name: rust fmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
- run: rustup component add rustfmt
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
|
@ -1,3 +1,5 @@
|
|||
![Auteur CI](https://github.com/MathieuDuponchelle/auteur/actions/workflows/CI.yml/badge.svg?branch=main)
|
||||
|
||||
# Auteur
|
||||
|
||||
The current scope of this project is that of a basic live node
|
||||
|
|
Загрузка…
Ссылка в новой задаче