-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from streeve/fixup_gha
Update CI
- Loading branch information
Showing
8 changed files
with
103 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
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" \ | ||
-DCabana_DISABLE_CAJITA_DEPRECATION_WARNINGS=ON | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Clang-Format Check | ||
on: [pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Formatting Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '10' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters