Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 9, 2024
1 parent d66b2c5 commit 422a4a4
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
pull_request:
branches:
- master
schedule:
- cron: '0 5 * * *'

jobs:
CI:
Expand All @@ -17,7 +15,7 @@ jobs:
cxx: ['g++', 'clang++']
backend: ['SERIAL', 'OPENMP']
cmake_build_type: ['Debug', 'Release']
kokkos_ver: ['3.2.01']
kokkos_ver: ['3.7.02']
arborx: ['ArborX', 'NoArborX']
nnp: ['ON', 'OFF']
layout: ['1']
Expand All @@ -29,7 +27,7 @@ jobs:
cxx: 'g++'
openmp: 'ON'
cmake_build_type: 'Release'
kokkos_ver: '3.2.01'
kokkos_ver: '3.7.02'
arborx: 'NoArborX'
nnp: 'OFF'
layout: '2'
Expand All @@ -40,7 +38,7 @@ jobs:
cxx: 'g++'
openmp: 'ON'
cmake_build_type: 'Release'
kokkos_ver: '3.2.01'
kokkos_ver: '3.7.02'
arborx: 'NoArborX'
nnp: 'ON'
layout: '6'
Expand All @@ -51,7 +49,7 @@ jobs:
cxx: 'g++'
openmp: 'ON'
cmake_build_type: 'Release'
kokkos_ver: '3.2.01'
kokkos_ver: '3.7.02'
arborx: 'NoArborX'
nnp: 'OFF'
layout: '6'
Expand All @@ -61,13 +59,8 @@ jobs:
runs-on: ubuntu-20.04
container: ghcr.io/ecp-copa/ci-containers/${{ matrix.distro }}
steps:
- name: Get trail license
if: ${{ matrix.cxx == 'icpc' }}
run: |
mkdir ~/Licenses
curl https://dynamicinstaller.intel.com/api/v2/license > ~/Licenses/intel.lic
- name: Checkout kokkos
uses: actions/checkout@v2.2.0
uses: actions/checkout@v3
with:
repository: kokkos/kokkos
ref: ${{ matrix.kokkos_ver }}
Expand All @@ -85,10 +78,10 @@ jobs:
cmake --install build
- name: Checkout arborx
if: ${{ matrix.arborx == 'ArborX' }}
uses: actions/checkout@v2.2.0
uses: actions/checkout@v3
with:
repository: arborx/ArborX
ref: master
ref: v1.4.1
path: arborx
- name: Build arborx
if: ${{ matrix.arborx == 'ArborX' }}
Expand All @@ -102,10 +95,10 @@ jobs:
cmake --build build --parallel 2
cmake --install build
- name: Checkout Cabana
uses: actions/checkout@v2.2.0
uses: actions/checkout@v3
with:
repository: ECP-CoPA/Cabana
ref: master
ref: 0.5.0
path: cabana
- name: Build Cabana
working-directory: cabana
Expand All @@ -120,7 +113,7 @@ jobs:
cmake --install build
- name: Checkout n2p2
if: ${{ matrix.nnp == 'ON' }}
uses: actions/checkout@v2.2.0
uses: actions/checkout@v3
with:
repository: CompPhysVienna/n2p2
ref: v2.0.1
Expand All @@ -133,7 +126,7 @@ jobs:
mkdir -p $HOME/n2p2/lib
make libnnpif INTERFACES=CabanaMD PROJECT_INCLUDE=$HOME/n2p2/include PROJECT_LIB=$HOME/n2p2/lib
- name: Checkout CabanaMD
uses: actions/checkout@v2.2.0
uses: actions/checkout@v3
- name: Build CabanaMD
run: |
cmake -B build \
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/Weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Nightly
on:
workflow_dispatch:
schedule:
- cron: '30 6 * * 1'

jobs:
CI:
strategy:
matrix:
backend: ["OPENMP", "SERIAL"]
cmake_build_type: ['Release']
runs-on: ubuntu-20.04
container: ghcr.io/ecp-copa/ci-containers/ubuntu:latest
steps:
- name: Checkout kokkos
uses: actions/checkout@v3
with:
repository: kokkos/kokkos
ref: develop
path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \
-DKokkos_ENABLE_${{ matrix.backend }}=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_3=OFF
cmake --build build --parallel 2
cmake --install build
- name: Checkout Cabana
uses: actions/checkout@v3
with:
repository: ECP-CoPA/Cabana
ref: master
path: cabana
- name: Build Cabana
working-directory: cabana
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
-DCMAKE_INSTALL_PREFIX=$HOME/Cabana \
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \
cmake --build build --parallel 2
cmake --install build
- name: Checkout CabanaMD
uses: actions/checkout@v3
- name: Build CabanaMD
run: |
cmake -B build \
-D CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
-D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror" \
-D CMAKE_INSTALL_PREFIX=$HOME/CabanaPD \
-D CMAKE_PREFIX_PATH="$HOME/Cabana" \
-D MPIEXEC_MAX_NUMPROCS=2 \
-D MPIEXEC_PREFLAGS="--oversubscribe" \
-D CabanaPD_ENABLE_TESTING=ON
cmake --build build --parallel 2
cmake --install build
- name: Test CabanaPD
run: |
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test

0 comments on commit 422a4a4

Please sign in to comment.