forked from deepmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 959 Bytes
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tag: gnu
build_args: ""
name: "Build with GNU compilers"
- tag: gnu
build_args: "-DENABLE_LIBXC=1 -DENABLE_DEEPKS=1"
name: "Build with GNU compilers and extra components"
- tag: intel
build_args: ""
name: "Build with Intel compilers"
- tag: cuda
build_args: "-DUSE_CUDA=1"
name: "Build with CUDA kit"
- tag: intel
build_args: "-DENABLE_LCAO=OFF"
name: "Build without LCAO"
name: ${{ matrix.name }}
container: ghcr.io/deepmodeling/abacus-development-kit:${{ matrix.tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
cmake -B build -DBUILD_TESTING=ON ${{ matrix.build_args }}
cmake --build build -j2