Skip to content

Commit

Permalink
Another Round of CI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddement committed Jul 10, 2024
1 parent 9ec4555 commit b31d6ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 181 deletions.
118 changes: 0 additions & 118 deletions .github/workflows/ci.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/clang-tidy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
CMAKE_BUILD_PARALLEL_LEVEL: 1

jobs:
Correctness:
ClangTidy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -32,7 +32,6 @@ jobs:
submodules: true
path: openturbine
- name: Run Clang-Tidy
if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'llvm'
run: |
source spack/share/spack/setup-env.sh
spack load trilinos
Expand All @@ -43,6 +42,6 @@ jobs:
cmake .. \
-DOTURB_ENABLE_TESTS:BOOL=ON \
-DOTURB_ENABLE_BASIC_SANITIZERS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_CLANG_TIDY="clang-tidy"
cmake --build .
20 changes: 6 additions & 14 deletions .github/workflows/correctness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,19 @@ name: OpenTurbine-CI

on: push

env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 2

jobs:
Correctness:
CTest:
runs-on: ${{matrix.os}}
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 2
CXX: ${{matrix.compiler}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [gcc, llvm]
compiler: [g++, clang++]
build_type: [Release, Debug]
exclude:
- os: macos-latest
compiler: gcc
include:
- os: ubuntu-latest
install_deps: sudo apt-get install gfortran-13 libblas-dev liblapack-dev liblapacke-dev
- os: macos-latest
install_deps: brew install gfortran gcc openblas lapack
steps:
- name: Cache install Trilinos
id: cache-trilinos
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/cppcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
CMAKE_BUILD_PARALLEL_LEVEL: 1

jobs:
Correctness:
CppCheck:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -32,7 +32,6 @@ jobs:
submodules: true
path: openturbine
- name: Run CppCheck
if: matrix.os == 'ubuntu-latest' && matrix.compiler == 'llvm'
run: |
source spack/share/spack/setup-env.sh
spack load trilinos
Expand All @@ -43,6 +42,6 @@ jobs:
cmake .. \
-DOTURB_ENABLE_TESTS:BOOL=ON \
-DOTURB_ENABLE_BASIC_SANITIZERS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_CPPCHECK="cppcheck;--enable=all;--error-exitcode=0;--suppress=missingInclude;--library=googletest"
cmake --build .
41 changes: 0 additions & 41 deletions .github/workflows/deploy-pages.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: OpenTurbine-CI
on: push

jobs:
Formatting:
ClangFormat:
runs-on: ubuntu-latest
steps:
- name: Clone
Expand All @@ -13,5 +13,5 @@ jobs:
with:
source: './src ./tests/unit_tests'
exclude: '.'
extensions: 'H,h,cpp'
extensions: 'H,h,cpp,hpp'
clangFormatVersion: 16

0 comments on commit b31d6ef

Please sign in to comment.