-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI tests for LLVM 10, 14, 15 and 16 (#2754)
* 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
1 parent
cd75eeb
commit 517da5c
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |