Update to tuirealm 2.0 #1952
Workflow file for this run
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: Test Suites | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: '00 01 * * *' | |
jobs: | |
test_linux: | |
name: Test Linux | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [stable, "1.77"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Install developer package dependencies | |
run: sudo apt-get update && sudo apt-get install libasound2-dev libdbus-1-dev pkg-config protobuf-compiler libgstreamer1.0-0 libunwind-dev libgstreamer1.0-dev libmpv-dev | |
# extra packages for gst (last updated for 22.04): libgstreamer1.0-0 libunwind-dev libgstreamer1.0-dev | |
# extra packages for mpv: libmpv-dev | |
# run: sudo apt-get update && sudo apt-get install libpulse-dev portaudio19-dev libasound2-dev libsdl2-dev gstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavahi-compat-libdnssd-dev libgstreamer-plugins-bad1.0-dev | |
# run: sudo apt-get update && sudo apt-get install libpulse-dev portaudio19-dev libasound2-dev libsdl2-dev gstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavahi-compat-libdnssd-dev libgstreamer-plugins-bad1.0-dev gstreamer-player-1 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo check | |
run: cargo check --all --features cover,all-backends | |
- name: Run cargo test | |
run: cargo test --features cover,all-backends --release --all | |
- name: Run cargo fmt | |
run: cargo fmt --all | |
- name: Run cargo clippy | |
run: cargo clippy --all --features cover,all-backends -- -D warnings | |
test_macos: | |
name: Test Mac | |
strategy: | |
matrix: | |
os: [macos-latest] | |
rust: [stable] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Install developer package dependencies | |
run: | | |
brew update | |
brew install protobuf | |
brew install sound-touch | |
# brew install libsixel | |
# brew install gstreamer | |
# brew install mpv | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo check | |
run: cargo check --all | |
# run: cargo check --all --features cover,all-backends | |
- name: Run cargo test | |
run: cargo test --all | |
# run: cargo test --features cover,all-backends --release --all | |
- name: Run cargo fmt | |
run: cargo fmt --all | |
- name: Run cargo clippy | |
run: cargo clippy --all -- -D warnings | |
# run: cargo clippy --all --features cover,all-backends -- -D warnings | |
test-win: | |
name: Test Win | |
strategy: | |
matrix: | |
os: [windows-latest] | |
rust: [stable] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Install dependencies | |
run: choco install protoc | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo check | |
run: cargo check | |
- name: Run cargo test | |
run: cargo test | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings |