Skip to content

CI: add pre-commit.ci to apply clang-format and clang-tidy fixes #5493

CI: add pre-commit.ci to apply clang-format and clang-tidy fixes

CI: add pre-commit.ci to apply clang-format and clang-tidy fixes #5493

name: Build Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tag: intel
build_args: "CXX=mpiicpc ELPA_LIB_DIR=/usr/local/lib ELPA_INCLUDE_DIR=/usr/local/include CEREAL_DIR=/usr/include/cereal OPENMP=ON"
name: "Build with Makefile & Intel compilers"
name: ${{ matrix.name }}
container: ghcr.io/deepmodeling/abacus-${{ matrix.tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
export I_MPI_CXX=icpx
cd source
make -j2 ${{ matrix.build_args }}