Skip to content

Commit

Permalink
CI tests for LLVM 10, 14, 15 and 16 (#2754)
Browse files Browse the repository at this point in the history
* CI tests for LLVM 10, 14, 15 and 16

by default we test LLVM 11

* add sympy dependency for LLVM tests

* changed dependencies according to my local machine, where tests pass

* fix .

* Update .github/workflows/CI.yml

Co-authored-by: Shaikh Ubaid <[email protected]>

* figuring out cause of error

Commenting out tests that throw LLVM exceptions

* figuring out cause of error

skipping ctest, checking if integration tests pass

* remove LLVM 14 test

---------

Co-authored-by: Shaikh Ubaid <[email protected]>
  • Loading branch information
Vipul-Cariappa and Shaikh-Ubaid authored Jul 27, 2024
1 parent cd75eeb commit 517da5c
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
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/[email protected]
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

0 comments on commit 517da5c

Please sign in to comment.