Add Vulkan acceleration support #82
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint-and-test-default: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install Linux build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake clang pkg-config libasound2-dev | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Clippy (default features) | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Test (default features) | |
| run: cargo test | |
| feature-checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Linux build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake clang pkg-config libasound2-dev libvulkan-dev | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check no default features | |
| run: cargo check --no-default-features | |
| - name: Check osd feature only | |
| run: cargo check --no-default-features --features osd | |
| - name: Check local rewrite feature only | |
| run: cargo check --no-default-features --features local-rewrite | |
| - name: Check vulkan feature only | |
| run: cargo check --no-default-features --features vulkan | |
| - name: Check vulkan + local rewrite features | |
| run: cargo check --no-default-features --features vulkan,local-rewrite | |
| - name: Package tarball | |
| run: cargo package --locked | |
| - name: Check cuda feature only (if toolkit available) | |
| run: | | |
| if command -v nvcc >/dev/null 2>&1; then | |
| cargo check --no-default-features --features cuda | |
| cargo check --no-default-features --features cuda,local-rewrite | |
| else | |
| echo "CUDA toolkit not available on this runner; skipping cuda feature check" | |
| fi | |
| release-bundle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Linux build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake clang pkg-config libasound2-dev | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build release bundle | |
| run: scripts/build-release-bundle.sh |