Skip to content
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
49 changes: 49 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,55 @@ jobs:
cd integration_tests
./run_tests.py -b cpython c_py

test_llvm:
name: Test LLVM ${{ matrix.llvm-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
llvm-version: ["10", "15", "16"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: mamba-org/setup-micromamba@v1.8.0
with:
environment-file: ci/environment_linux_llvm.yml
create-args: >-
llvmdev=${{ matrix.llvm-version }}

- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: ${{ github.job }}-${{ matrix.llvm-version }}

- name: Build Linux
shell: bash -e -l {0}
run: |
./build0.sh
export CXXFLAGS="-Werror"
cmake . -G"Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_LLVM=yes \
-DLFORTRAN_BUILD_ALL=yes \
-DWITH_STACKTRACE=no \
-DWITH_RUNTIME_STACKTRACE=yes \
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache

cmake --build . -j16 --target install

- name: Test Linux LLVM ${{ matrix.llvm-version }}
shell: bash -e -l {0}
run: |
ctest --output-on-failure
cd integration_tests
./run_tests.py -b llvm llvm_jit
./run_tests.py -b llvm llvm_jit -f

build_jupyter_kernel:
name: Build Jupyter Kernel
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions ci/environment_linux_llvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: lp
channels:
- conda-forge
- defaults
dependencies:
- git
- pip
- make
- re2c
- toml
- zlib
- cmake
- numpy
- flake8
- setuptools
- bison=3.4
- python=3.10.2
- zstd-static=1.5
- symengine=0.12.0
- sympy=1.11.1