Skip to content
Merged
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
45 changes: 45 additions & 0 deletions interpreter/cling/.github/workflows/cling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Cling Build and Test

on:
push:
paths:
- '**'
workflow_dispatch:

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout LLVM
uses: actions/checkout@v4
with:
repository: root-project/llvm-project
path: llvm
ref: cling-latest
fetch-depth: 1

- name: Checkout Cling
uses: actions/checkout@v4
with:
repository: root-project/cling
path: cling
fetch-depth: 1

- name: Prepare build directory
run: |
mkdir build

- name: Configure
working-directory: build
run: cmake -DLLVM_EXTERNAL_PROJECTS=cling -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../cling/ -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_TARGETS_TO_BUILD="host;NVPTX" -DCMAKE_BUILD_TYPE=Release ../llvm/llvm/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably wanted RelWithDebInfo to trigger at least asserts in tests.


- name: Build
working-directory: build
run: cmake --build . --parallel 4 --target cling

- name: Test
working-directory: build
run: cmake --build . --target check-cling