dash-mpd-rs-async/.github/workflows/ci.yml

55 строки
1.5 KiB
YAML
Исходник Обычный вид История

2022-01-05 15:57:23 +03:00
on: [push]
name: build
jobs:
check:
2022-01-05 16:36:49 +03:00
name: dash-mpd-rs check/nightly
2022-01-05 15:57:23 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
test:
2022-01-05 16:36:49 +03:00
name: dash-mpd-rs test/stable
2022-01-05 15:57:23 +03:00
runs-on: ubuntu-latest
steps:
- name: Install ffmpeg
# As of 2022-03, ubuntu-latest is using focal-updates which has libavcodec-dev v4.2.4
# This does not include libavformat/bsf.h, which is required by the ac-ffmpeg crate.
# Try to obtain ffmpeg/libav v4.4 from a ppa.
2022-01-05 15:57:23 +03:00
run: |
sudo add-apt-repository ppa:savoury1/ffmpeg4
2022-01-05 15:57:23 +03:00
sudo apt-get update
2022-01-06 15:42:44 +03:00
sudo apt-get install ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
2022-01-05 15:57:23 +03:00
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
2022-01-06 15:44:47 +03:00
- name: Build with libav feature
uses: actions-rs/cargo@v1
with:
2022-01-06 15:51:04 +03:00
command: build
args: --features libav