mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-25 16:41:00 +00:00
fix ci
This commit is contained in:
parent
a8c788f4d2
commit
651db2e18b
3 changed files with 40 additions and 29 deletions
53
.github/workflows/rust.yml
vendored
53
.github/workflows/rust.yml
vendored
|
@ -1,33 +1,44 @@
|
||||||
name: Rust
|
name: rust
|
||||||
|
|
||||||
# Trigger the workflow on push or pull request
|
# Trigger the workflow on push or pull request
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustfmt:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
rust:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
- nightly
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install latest nightly
|
- uses: actions-rs/toolchain@v1
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
profile: minimal
|
||||||
- run: rustup component add rustfmt
|
toolchain: ${{ matrix.rust }}
|
||||||
- uses: actions-rs/cargo@v2
|
override: true
|
||||||
|
components: rustfmt, clippy
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --all-features
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --all-features
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: doc
|
||||||
|
args: --all-features
|
||||||
|
|
||||||
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|
||||||
clippy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Install latest nightly
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
- run: rustup component add clippy
|
|
||||||
- uses: actions-rs/cargo@v2
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
# args: -- -D warnings
|
|
||||||
|
|
|
@ -35,6 +35,6 @@ script:
|
||||||
after_success: |
|
after_success: |
|
||||||
# this does require a -Z flag for Doctests, which is unstable!
|
# this does require a -Z flag for Doctests, which is unstable!
|
||||||
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
|
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
|
||||||
cargo tarpaulin --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml
|
cargo tarpaulin -f --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -40,7 +40,7 @@ vulnerability = "deny"
|
||||||
# The lint level for unmaintained crates
|
# The lint level for unmaintained crates
|
||||||
unmaintained = "warn"
|
unmaintained = "warn"
|
||||||
# The lint level for crates that have been yanked from their source registry
|
# The lint level for crates that have been yanked from their source registry
|
||||||
yanked = "warn"
|
# yanked = "warn"
|
||||||
# The lint level for crates with security notices. Note that as of
|
# The lint level for crates with security notices. Note that as of
|
||||||
# 2019-12-17 there are no security notice advisories in
|
# 2019-12-17 there are no security notice advisories in
|
||||||
# https://github.com/rustsec/advisory-db
|
# https://github.com/rustsec/advisory-db
|
||||||
|
|
Loading…
Reference in a new issue