File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -30,33 +30,20 @@ jobs:
30
30
echo "MSRV=$MSRV" | tee --append "$GITHUB_OUTPUT"
31
31
32
32
linux :
33
- # strategy:
34
- # matrix:
35
- # include:
36
- # - name: "default features"
37
- # cargo-args: ""
38
- # - name: "CUDA and OpenCL"
39
- # cargo-args: "--features cuda,opencl"
40
- # - name: "CUDA only"
41
- # cargo-args: "--no-default-features --features cuda"
42
- # - name: "OpenCL only"
43
- # cargo-args: "--no-default-features --features opencl"
44
33
needs : set-msrv
45
34
runs-on : ubuntu-latest
46
- # name: Linux ${{ matrix.name }}
47
35
steps :
48
36
- uses : actions/checkout@v4
49
37
- uses : dtolnay/rust-toolchain@master
50
38
with :
51
39
toolchain : ${{needs.set-msrv.outputs.msrv}}
52
40
- name : Install required packages
53
41
run : sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev nvidia-cuda-toolkit
54
- # - name: Test with ${{ matrix.name }}
55
- # run: cargo test --workspace ${{ matrix.cargo-args }} -- --nocapture --test-threads 1
56
- - name : Test with default fetures
57
- run : |
58
- whereis nvcc
59
- cargo test --workspace -- --nocapture --test-threads 1
42
+ - name : Build with default features
43
+ run : cargo build --workspace
44
+ # Machine has no GPU installed, hence run without the `cuda` or `opencl` feature.
45
+ - name : Run tests without default features
46
+ run : cargo test --workspace --no-default-features -- --nocapture
60
47
61
48
# clippy_check:
62
49
# needs: set-msrv
You can’t perform that action at this time.
0 commit comments