-
Notifications
You must be signed in to change notification settings - Fork 3
77 lines (72 loc) · 1.9 KB
/
linux.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright (c) 2020-2022 ETH Zurich
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
name: Linux CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: stellargroup/build_env:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
shell: bash
run: |
mkdir -p /tmp/hpx
cd /tmp/hpx
git clone \
--branch v1.9.0 \
--single-branch \
--depth 1 \
https://github.com/STEllAR-GROUP/hpx.git
mkdir -p build
cd build
cmake \
../hpx \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DHPX_WITH_UNITY_BUILD=ON \
-DHPX_WITH_MALLOC=system \
-DHPX_WITH_EXAMPLES=OFF \
-DHPX_WITH_NETWORKING=OFF
ninja install
mkdir -p /tmp/kokkos
cd /tmp/kokkos
git clone \
--branch develop \
--single-branch \
--depth 1 \
https://github.com/kokkos/kokkos.git
mkdir -p build
cd build
cmake \
../kokkos \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DKokkos_ENABLE_HPX=ON
ninja install
- name: Configure
shell: bash
run: |
cmake \
. \
-Bbuild \
-GNinja \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_BUILD_TYPE=Debug \
-DHPX_KOKKOS_ENABLE_TESTS=ON
- name: Build
shell: bash
run: |
cmake --build build --target tests
- name: Test
shell: bash
run: |
cd build
ctest --output-on-failure