From 5aca28926a93b866e4c90ce5a972f2d8db53d1d4 Mon Sep 17 00:00:00 2001
From: Volker Mische <volker.mische@gmail.com>
Date: Wed, 14 Aug 2024 15:15:26 +0200
Subject: [PATCH] chore: build and test

---
 .github/workflows/ci.yml | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6d016b8..de18bb7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,20 +30,8 @@ jobs:
           echo "MSRV=$MSRV" | tee --append "$GITHUB_OUTPUT"
 
   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"
     needs: set-msrv
     runs-on: ubuntu-latest
-    #name: Linux ${{ matrix.name }}
     steps:
       - uses: actions/checkout@v4
       - uses: dtolnay/rust-toolchain@master
@@ -51,12 +39,11 @@ jobs:
           toolchain: ${{needs.set-msrv.outputs.msrv}}
       - name: Install required packages
         run: sudo apt install --no-install-recommends --yes ocl-icd-opencl-dev nvidia-cuda-toolkit
-      #- 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
+      - name: Build with default features
+        run: cargo build --workspace
+      # Machine has no GPU installed, hence run without the `cuda` or `opencl` feature.
+      - name: Run tests without default features
+        run: cargo test --workspace --no-default-features -- --nocapture
 
   #clippy_check:
   #  needs: set-msrv