Skip to content

CI

CI #97

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 4 * * MON'
jobs:
CI:
strategy:
matrix:
distro: ['ubuntu:latest']
backend: ["SERIAL", "OPENMP"]
runs-on: ubuntu-20.04
container:
image: ghcr.io/ecp-copa/ci-containers/${{ matrix.distro }}
steps:
- name: Checkout kokkos
uses: actions/[email protected]
with:
repository: kokkos/kokkos
ref: 3.7.01
path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \
-DKokkos_CXX_STANDARD=14 \
-DKokkos_ENABLE_${{ matrix.backend }}=ON
cmake --build build --parallel 2
cmake --install build
- name: Checkout Cabana
uses: actions/[email protected]
with:
repository: ECP-copa/Cabana
ref: 0.6.0
path: Cabana
- name: Build Cabana
working-directory: Cabana
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/Cabana \
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \
-DCabana_REQUIRE_${{ matrix.backend }}=ON
cmake --build build --parallel 2
cmake --install build
- name: Checkout code
uses: actions/[email protected]
- name: Build
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=$HOME/haccabana -DCMAKE_PREFIX_PATH="$HOME/Cabana"
cmake --build build --parallel 2
cmake --install build
- name: Run
run: |
OMP_PROC_BIND=false $HOME/haccabana/bin/driver_short-range -s -t 0 -c 064.indat.params