Skip to content

Commit 5aca289

Browse files
committed
chore: build and test
1 parent 794f12f commit 5aca289

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,20 @@ jobs:
3030
echo "MSRV=$MSRV" | tee --append "$GITHUB_OUTPUT"
3131
3232
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"
4433
needs: set-msrv
4534
runs-on: ubuntu-latest
46-
#name: Linux ${{ matrix.name }}
4735
steps:
4836
- uses: actions/checkout@v4
4937
- uses: dtolnay/rust-toolchain@master
5038
with:
5139
toolchain: ${{needs.set-msrv.outputs.msrv}}
5240
- name: Install required packages
5341
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
6047

6148
#clippy_check:
6249
# needs: set-msrv

0 commit comments

Comments
 (0)