Skip to content

Commit

Permalink
chore: check if nvcc is there
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Aug 14, 2024
1 parent dbfe6dc commit 985d6e6
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,32 @@ jobs:
linux:
strategy:
matrix:
include:
- name: "default features"
cargo-args: ""
- name: "CUDA and OpenCL"
cargo-args: "--features cuda,opencl"
- name: "CUDA only"
cargo-args: "--no-default-features --features cuda"
- name: "OpenCL only"
cargo-args: "--no-default-features --features opencl"
#matrix:
# include:
# - name: "default features"
# cargo-args: ""
# - name: "CUDA and OpenCL"
# cargo-args: "--features cuda,opencl"
# - name: "CUDA only"
# cargo-args: "--no-default-features --features cuda"
# - name: "OpenCL only"
# cargo-args: "--no-default-features --features opencl"
needs: set-msrv
runs-on: ubuntu-latest
name: Linux ${{ matrix.name }}
#name: Linux ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{needs.set-msrv.outputs.msrv}}
- name: Install required packages
run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev nvidia-cuda-dev
- name: Test with ${{ matrix.name }}
run: cargo test --workspace ${{ matrix.cargo-args }} -- --nocapture --test-threads 1
#- name: Test with ${{ matrix.name }}
# run: cargo test --workspace ${{ matrix.cargo-args }} -- --nocapture --test-threads 1
- name: Test with default fetures
run: |
whereis nvcc
cargo test --workspace -- --nocapture --test-threads 1
#clippy_check:
# needs: set-msrv
Expand Down

0 comments on commit 985d6e6

Please sign in to comment.