Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 34 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI

permissions:
contents: read

on:
push:
branches:
Expand All @@ -11,7 +14,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: cargo fmt
Expand All @@ -21,7 +24,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: cargo clippy
Expand All @@ -31,7 +34,7 @@ jobs:
name: Cargo Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: cargo check
Expand All @@ -41,7 +44,7 @@ jobs:
name: MSRV Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@1.87.0
- name: cargo check
Expand All @@ -53,9 +56,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-2025-vs2026]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install ffmpeg (Ubuntu)
Expand All @@ -67,18 +70,39 @@ jobs:
if: matrix.os == 'macos-latest'
run: brew install ffmpeg
- name: Install ffmpeg (Windows)
if: matrix.os == 'windows-latest'
if: startsWith(matrix.os, 'windows-')
shell: pwsh
run: choco install ffmpeg --no-progress -y
- name: cargo test
run: cargo test

windows-static-crt:
name: Windows Static CRT
runs-on: windows-2025-vs2026
env:
CARGO_TARGET_DIR: target/ci-windows-static-crt
CRT_VERIFY_TARGET: x86_64-pc-windows-msvc
RUSTFLAGS: -C target-feature=+crt-static
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-pc-windows-msvc
- name: Install ffmpeg
shell: pwsh
run: choco install ffmpeg --no-progress -y
- name: Verify static CRT imports
run: python scripts/verify_windows_static_crt.py
- name: cargo test (static CRT)
run: cargo test --target x86_64-pc-windows-msvc

avx-presume:
name: AVX presume feature
runs-on: ubuntu-latest
needs: [fmt, clippy, check, tests]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Verify AVX presume gating
Expand All @@ -89,7 +113,7 @@ jobs:
runs-on: ubuntu-latest
needs: [fmt, clippy, check, tests]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install build dependencies
Expand All @@ -104,7 +128,7 @@ jobs:
runs-on: ubuntu-latest
needs: [fmt, clippy, check, tests]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install deps (ffmpeg + wget for model download)
Expand Down
Loading