Bump log from 0.4.22 to 0.4.25 #257
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update stable && rustup default stable | |
- run: rustup component add rustfmt | |
- run: cargo fmt --all --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: sudo apt update && sudo apt install -y libavutil-dev libavformat-dev libavfilter-dev libavdevice-dev | |
- run: rustup update stable && rustup default stable | |
- run: rustup component add clippy | |
- run: cargo clippy -- -D warnings | |
test: | |
name: test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install packages (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt update && sudo apt install -y libavutil-dev libavformat-dev libavfilter-dev libavdevice-dev | |
- name: Install packages (macOs) | |
if: matrix.os == 'macos-latest' | |
run: brew install ffmpeg pkg-config | |
- name: Install packages (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
Invoke-WebRequest -Uri https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.1-full_build-shared.7z -OutFile ffmpeg.7z | |
7z x ffmpeg.7z | |
- name: Build (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
$env:FFMPEG_DIR = "$(Get-Location)\ffmpeg-7.1-full_build-shared"; cargo build --verbose | |
cp "$(Get-Location)\ffmpeg-7.1-full_build-shared\bin\*" 'target\debug\' | |
- name: Build (Unix) | |
if: matrix.os != 'windows-latest' | |
run: cargo build --verbose | |
- name: Run tests (Unix) | |
if: matrix.os != 'windows-latest' | |
run: cargo test --verbose | |
- name: Run tests (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
$env:FFMPEG_DIR = "$(Get-Location)\ffmpeg-7.1-full_build-shared"; cargo build --verbose | |
cargo test --verbose |