Fix ci #3
Workflow file for this run
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: Rust CI | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| branches: | |
| - main | |
| env: | |
| RUST_LOG: info | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| rust: | |
| name: Rust ${{ matrix.rust }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| LLVM_LINK_STATIC: 1 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| target: x86_64-unknown-linux-gnu | |
| - os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install CUDA | |
| uses: Jimver/[email protected] | |
| id: cuda-toolkit | |
| with: | |
| cuda: '12.8.0' | |
| # random command that forces rustup to install stuff in rust-toolchain | |
| - name: Install rust-toolchain | |
| run: cargo version | |
| - name: Add rustup components | |
| run: rustup component add rustfmt clippy | |
| - name: Install LLVM | |
| if: contains(matrix.os, 'ubuntu') | |
| run: | | |
| apt-get install libllvm-18-ocaml-dev libllvm18 llvm-18 llvm-18-dev llvm-18-doc llvm-18-examples llvm-18-runtime | |
| - name: Load Rust Cache | |
| uses: Swatinem/[email protected] | |
| - name: Rustfmt | |
| if: contains(matrix.os, 'ubuntu') | |
| run: cargo fmt --all -- --check | |
| - name: Build | |
| run: cargo build --workspace --exclude "optix" --exclude "path_tracer" --exclude "denoiser" --exclude "add" --exclude "ex*" | |
| # Don't currently test because many tests rely on the system having a CUDA GPU | |
| # - name: Test | |
| # run: cargo test --workspace | |
| - name: Clippy | |
| if: contains(matrix.os, 'ubuntu') | |
| env: | |
| RUSTFLAGS: -Dwarnings | |
| run: cargo clippy --workspace --exclude "optix" --exclude "path_tracer" --exclude "denoiser" --exclude "add" --exclude "ex*" | |
| - name: Check documentation | |
| env: | |
| RUSTDOCFLAGS: -Dwarnings | |
| run: cargo doc --workspace --all-features --document-private-items --no-deps --exclude "optix" --exclude "path_tracer" --exclude "denoiser" --exclude "add" --exclude "ex*" |