1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-09-21 03:00:00 +00:00

add token and disable jobs (temporary)

This commit is contained in:
Luro02 2019-09-27 15:07:20 +02:00
parent 2b24cf32d3
commit dee36deb1c

View file

@ -4,85 +4,81 @@ name: Rust
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: # build:
name: Build # runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }} # strategy:
strategy: # matrix:
matrix: # rust:
rust: # - stable
- stable # os:
os: # - ubuntu-latest
- ubuntu-latest # # execute cargo build
# execute cargo build # steps:
steps: # - uses: actions/checkout@v1
- uses: actions/checkout@v1 # - uses: actions-rs/toolchain@v1
- uses: actions-rs/toolchain@v1 # with:
with: # toolchain: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }} # override: true
override: true # - uses: actions-rs/cargo@v1
- uses: actions-rs/cargo@v1 # with:
with: # command: build
command: build # arguments: --all-features
arguments: --all-features #
# test:
test: # runs-on: ${{ matrix.os }}
name: Test # strategy:
runs-on: ${{ matrix.os }} # matrix:
strategy: # rust:
matrix: # - stable
rust: # os:
- stable # - ubuntu-latest
os: # # execute cargo test
- ubuntu-latest # steps:
# execute cargo test # - uses: actions/checkout@v1
steps: # - uses: actions-rs/toolchain@v1
- uses: actions/checkout@v1 # with:
- uses: actions-rs/toolchain@v1 # toolchain: ${{ matrix.rust }}
with: # override: true
toolchain: ${{ matrix.rust }} # - uses: actions-rs/cargo@v1
override: true # with:
- uses: actions-rs/cargo@v1 # command: test
with:
command: test
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
# args: -- -D warnings
# rustfmt:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# rust:
# - stable
# steps:
# - uses: actions/checkout@v1
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.rust }}
# override: true
# - run: rustup component add rustfmt
# - uses: actions-rs/cargo@v1
# with:
# command: fmt
# args: --all -- --check
#
# clippy:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# rust:
# - stable
# steps:
# - uses: actions/checkout@v1
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ matrix.rust }}
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# with:
# command: clippy
# # args: -- -D warnings
#
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -99,7 +95,7 @@ jobs:
'CARGO_INCREMENTAL': '0' 'CARGO_INCREMENTAL': '0'
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads' 'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
- uses: actions-rs/grcov@v0.1 - uses: actions-rs/grcov@v0.1
- name: Coveralls upload - name: codecov upload
uses: codecov/codecov-action@v1.0.2 uses: codecov/codecov-action@v1.0.2
with: with:
token: ${{secrets.CODECOV_TOKEN}} token: 8bedf116-6403-4c64-b3f6-3dcb7aa73848