Skip to content

Commit f80ed5f

Browse files
committed
chore: make Clippy a working separate step
1 parent 3f27a0f commit f80ed5f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ jobs:
1919
check_clippy:
2020
runs-on: ubuntu-24.04
2121
name: Clippy
22+
env:
23+
# Build the kernel only for the single architecture . This should reduce
24+
# the overall compile-time significantly.
25+
EC_GPU_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
26+
BELLMAN_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
27+
NEPTUNE_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
2228
steps:
2329
- uses: actions/checkout@v4
2430
- name: Install required packages
25-
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
31+
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
2632
- name: Run cargo clippy
2733
run: cargo clippy --all-targets --workspace -- -D warnings
2834

@@ -36,7 +42,7 @@ jobs:
3642

3743
build_gpu:
3844
runs-on: ubuntu-24.04
39-
name: Build with various GPU support enabled
45+
name: Build
4046
env:
4147
RUST_LOG: trace
4248
# Build the kernel only for the single architecture . This should reduce
@@ -48,10 +54,10 @@ jobs:
4854
- uses: actions/checkout@v4
4955
- name: Install required packages
5056
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
51-
# Run clippy as apart of the test job as it also needs the nvidia toolkit
52-
# in order to compile
53-
- name: Run Clippy
54-
run: cargo clippy --workspace -- -D warnings
57+
## Run clippy as apart of the test job as it also needs the nvidia toolkit
58+
## in order to compile
59+
#- name: Run Clippy
60+
# run: cargo clippy --workspace -- -D warnings
5561
- name: Build it
5662
run: cargo build --verbose
5763

0 commit comments

Comments
 (0)