Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Add clang to a docker build (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
leshikus authored Jun 13, 2023
1 parent 6f2b877 commit 1700736
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ jobs:
name: cuda
options: -DENABLE_PYTHON=off -DENABLE_CUDA=on

build-clang-docker:
name: Build Clang
uses: ./.github/workflows/build-docker.yml
with:
name: clang
options: -DENABLE_PYTHON=off -DENABLE_CUDA=on -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

test-cuda-docker:
name: Sanity test (Gtests)
needs: build-cuda-docker
Expand All @@ -104,6 +111,15 @@ jobs:
# input for a push event is an empty string, convert it to boolean
reset-cache: ${{ !!inputs.reset-cache }}

test-clang-docker:
name: Sanity test (Gtests)
needs: build-cuda-docker
uses: ./.github/workflows/test-docker.yml
with:
name: clang
# input for a push event is an empty string, convert it to boolean
reset-cache: ${{ !!inputs.reset-cache }}

build-l0-docker:
name: Build
uses: ./.github/workflows/build-docker.yml
Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.clang
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Cuda stack
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb && \
dpkg -i cuda-keyring_1.0-1_all.deb && \
apt-get update && \
apt-get install -y cuda-toolkit-12-0 cuda-drivers-525 libarrow-cuda-dev=11.*

ENV PATH=/usr/local/cuda/bin${PATH:+:${PATH}}

0 comments on commit 1700736

Please sign in to comment.