33 push :
44 pull_request :
55
6+ defaults :
7+ run :
8+ shell : bash
9+
610jobs :
711 test :
812 runs-on : ubuntu-latest
@@ -13,29 +17,37 @@ jobs:
1317 build_args : " "
1418 name : " Build with GNU toolchain"
1519 - tag : intel
20+ external_toolchain_args : " --with-intel"
1621 build_args : " "
1722 name : " Build with Intel toolchain"
1823
1924 - tag : gnu
25+ external_toolchain_args : " "
2026 build_args : " -DENABLE_LIBXC=1 -DENABLE_MLALGO=1 -DENABLE_LIBRI=1"
2127 name : " Build extra components with GNU toolchain"
2228 - tag : intel
29+ external_toolchain_args : " --with-intel"
2330 build_args : " -DENABLE_LIBXC=1 -DENABLE_PEXSI=1 -DENABLE_MLALGO=1 -DENABLE_LIBRI=1"
2431 name : " Build extra components with Intel toolchain"
2532
2633 - tag : cuda
34+ external_toolchain_args : " "
2735 build_args : " -DUSE_CUDA=1"
2836 name : " Build with CUDA support"
2937 - tag : gnu
38+ external_toolchain_args : " "
3039 build_args : " -DENABLE_LCAO=0"
3140 name : " Build without LCAO"
3241 - tag : gnu
42+ external_toolchain_args : " "
3343 build_args : " -DUSE_ELPA=0 "
3444 name : " Build without ELPA"
3545 - tag : gnu
46+ external_toolchain_args : " "
3647 build_args : " -DENABLE_MPI=0"
3748 name : " Build without MPI"
3849 - tag : gnu
50+ external_toolchain_args : " "
3951 build_args : " -DENABLE_MPI=0 -DENABLE_LCAO=0"
4052 name : " Build without LCAO and MPI"
4153
@@ -47,13 +59,22 @@ jobs:
4759 with :
4860 submodules : recursive
4961
62+ - name : Install external tools from toolchain
63+ run : |
64+ apt update && apt install -y gfortran xz-utils
65+ cd toolchain
66+ ./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run ${{matrix.external_toolchain_args}}
67+ ./scripts/stage4/install_stage4.sh
68+ cd ..
69+
5070 - name : Build
5171 run : |
5272 git config --global --add safe.directory `pwd`
5373 export LD_LIBRARY_PATH=${GKLIB_ROOT}/lib:${METIS32_ROOT}/lib:${PARMETIS32_ROOT}/lib:${SUPERLU32_DIST_ROOT}/lib:${PEXSI32_ROOT}/lib:${LD_LIBRARY_PATH}
5474 export PKG_CONFIG_PATH=${GKLIB_ROOT}/lib/pkgconfig:${METIS32_ROOT}/lib/pkgconfig:${PARMETIS32_ROOT}/lib/pkgconfig:${SUPERLU32_DIST_ROOT}/lib/pkgconfig:${PEXSI32_ROOT}/lib/pkgconfig:${PKG_CONFIG_PATH}
5575 export CPATH=${GKLIB_ROOT}/include:${METIS32_ROOT}/include:${PARMETIS32_ROOT}/include:${SUPERLU32_DIST_ROOT}/include:${PEXSI32_ROOT}/include:${CPATH}
5676 export CMAKE_PREFIX_PATH=${PEXSI32_ROOT}:${SUPERLU_DIST32_ROOT}:${PARMETIS32_ROOT}:${METIS32_ROOT}:${GKLIB_ROOT}:${CMAKE_PREFIX_PATH}
77+ source toolchain/install/setup
5778 rm -rf build
5879 cmake -B build ${{ matrix.build_args }}
5980 cmake --build build -j2
0 commit comments