Skip to content

Commit

Permalink
chore: build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Aug 14, 2024
1 parent 794f12f commit 5aca289
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,20 @@ 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
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-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
Expand Down

0 comments on commit 5aca289

Please sign in to comment.