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

Add docker clang build #512

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}