Skip to content

Commit

Permalink
CI: compile/run all tests and fixes (#1753)
Browse files Browse the repository at this point in the history
... for compiling with recent Clang version.
  • Loading branch information
havogt authored Apr 11, 2023
1 parent 489c90c commit b817808
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master, release_v2.0 ]

jobs:
perftests:
tests:
runs-on: ubuntu-latest
container: ghcr.io/gridtools/gridtools-base:${{ matrix.compiler }}
strategy:
Expand All @@ -24,8 +24,8 @@ jobs:
echo "OMP_NUM_THREADS=$(nproc)" >> $GITHUB_ENV
- name: build
run: |
python3 pyutils/driver.py -vv build -b ${{ matrix.build_type }} -o $(pwd)/build -i $(pwd)/install -t perftests
python3 pyutils/driver.py -vv build -b ${{ matrix.build_type }} -o $(pwd)/build -i $(pwd)/install
- name: run tests
if: (!contains(matrix.compiler, 'cuda') && !contains(matrix.compiler, 'hip')) # no GPUs available -> no tests
run: |
$(pwd)/build/pyutils/driver.py -vv test --perftests-only
$(pwd)/build/pyutils/driver.py -vv test
1 change: 1 addition & 0 deletions cmake/internal/FetchGoogletest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ function(fetch_googletest)
)
FetchContent_MakeAvailable(googletest)
target_compile_options(gtest PRIVATE "-w")
target_compile_options(gmock PRIVATE "-w")
endfunction()
1 change: 1 addition & 0 deletions include/gridtools/storage/data_store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <memory>
#include <string>
#include <type_traits>
#include <cstdint>

#include "../common/array.hpp"
#include "../common/array_addons.hpp"
Expand Down

0 comments on commit b817808

Please sign in to comment.