upgrade reqwest to 0.12 #79
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: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
RUST_BACKTRACE: 1 | |
steps: | |
- name: Setup Python | |
uses: actions/[email protected] | |
- name: Install youtube-dl and yt-dlp | |
run: pip install youtube-dl yt-dlp | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- uses: Swatinem/rust-cache@v1 | |
- name: Install cargo-hack | |
run: cargo install cargo-hack | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Check compilation | |
run: cargo check --all-features --all-targets --verbose | |
- name: Run tests | |
run: cargo hack test --each-feature --exclude-no-default-features |