-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (38 loc) · 1.26 KB
/
Nightly.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
name: Nightly
on:
workflow_dispatch:
inputs:
cmake_args:
description: 'Extra CMake args'
schedule:
- cron: '0 1 * * *'
jobs:
CI:
strategy:
matrix:
backend: ["OPENMP", "SERIAL"]
kokkos_ver: ["develop"]
runs-on: ubuntu-20.04
timeout-minutes: 30
container: ghcr.io/ecp-copa/ci-containers/ubuntu:latest
steps:
- name: Checkout kokkos
uses: actions/checkout@v3
with:
repository: kokkos/kokkos
ref: ${{ matrix.kokkos_ver }}
path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/kokkos -DKokkos_ENABLE_${{ matrix.backend }}=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build --parallel 2
cmake --install build
- name: Checkout ExaCA
uses: actions/checkout@v3
- name: Build ExaCA
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/exaca -DCMAKE_PREFIX_PATH="$HOME/kokkos" -DExaCA_ENABLE_TESTING=ON -DExaCA_ENABLE_JSON=ON -DCMAKE_BUILD_TYPE=Debug ${{ github.event.inputs.cmake_args }}
cmake --build build --parallel 2
cmake --install build
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test