37 lines
1015 B
YAML
Raw Normal View History

2022-05-07 22:13:13 +02:00
name: rust
on: [push, pull_request]
2022-03-31 21:44:48 +02:00
jobs:
build:
2022-05-18 14:32:12 +02:00
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
2022-03-31 21:44:48 +02:00
steps:
2022-06-01 21:00:57 +02:00
- uses: actions/checkout@v3
2023-11-01 17:56:24 +00:00
- uses: actions/setup-node@v3
with:
node-version: 18
2023-11-01 17:58:58 +00:00
- name: Set Build Tools and update Rust
2022-10-14 12:28:33 +02:00
run: |
rustup update stable
rustup component add rustfmt
rustup component add clippy
2022-10-14 12:23:58 +02:00
2023-11-01 17:56:24 +00:00
- name: Init Submodules
run: |
2023-11-01 18:07:10 +00:00
git submodule update --init --recursive
2023-11-01 17:56:24 +00:00
2022-10-14 12:39:51 +02:00
- name: Use ffmpeg on Linux
2022-10-14 12:23:58 +02:00
if: ${{ matrix.os == 'ubuntu-latest' }}
2023-02-02 12:33:19 +01:00
uses: FedericoCarboni/setup-ffmpeg@v2
2022-10-14 12:36:04 +02:00
2022-10-14 13:08:40 +02:00
- name: Tests on Linux
2022-10-14 12:39:51 +02:00
if: ${{ matrix.os == 'ubuntu-latest' }}
2022-10-14 12:31:48 +02:00
run: |
2022-10-14 12:39:51 +02:00
cargo test --all-features
cargo clippy --all-features --all-targets -- --deny warnings
cargo fmt --all -- --check
2023-07-09 14:30:26 +00:00
- name: Run build on ${{ matrix.os }}
2022-10-14 12:55:35 +02:00
run: cargo build --all-features