-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (39 loc) · 1.29 KB
/
main.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
36
37
38
39
40
41
42
name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install deps
run: sudo apt-get update; sudo apt-get install gfortran openmpi-bin libopenmpi-dev
- name: Checkout vpic and kokkos
uses: actions/checkout@v2
with:
submodules: recursive
#repository: kokkos/kokkos
#ref: 3.1.00
#path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/kokkos -DCMAKE_CXX_STANDARD=17
cmake --build build --parallel 2
cmake --install build
#- uses: actions/checkout@v2
- name: configure with external
run: cmake -B build -DCMAKE_PREFIX_PATH="$HOME/kokkos" -DENABLE_UNIT_TESTS=ON -DENABLE_INTEGRATED_TESTS=ON -DCMAKE_CXX_FLAGS="-rdynamic -fno-strict-aliasing"
- name: make external
run: cmake --build build
- name: make check
run: ctest --output-on-failure
working-directory: build
- name: configure with internal
run: cmake -B build_internal -DBUILD_INTERNAL_KOKKOS=ON -DENABLE_UNIT_TESTS=ON -DENABLE_INTEGRATED_TESTS=ON -DCMAKE_CXX_FLAGS="-rdynamic -fno-strict-aliasing"
- name: make internal
run: cmake --build build_internal