Skip to content

Commit

Permalink
Create c-cpp.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Golikov <kirill.golikov@abbyy.com>
  • Loading branch information
favorart committed Jun 18, 2024
1 parent 906f318 commit 95ab01e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C/C++ CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CXX: g++-10

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: seanmiddleditch/gha-setup-ninja@master
- name: configure
run: cmake -G Ninja /home/runner/work/neoml/neoml/NeoML -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/runner/work/neoml/build
- name: make
run: cmake --build . --target install
5 changes: 5 additions & 0 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ macro(add_gtest_target)
FetchContent_Populate(GoogleTest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
if(NOT WIN32)
# https://github.com/google/googletest/issues/1943
# https://stackoverflow.com/a/75379860
# target_compile_options(gtest PUBLIC "-w") # -w inhibits all warnings
endif()
else()
set(CMAKE_CXX_STANDARD 14)
add_subdirectory(${FINE_ROOT}/FineObjects/FineGTest/gmock-1.7.0/gtest ${CMAKE_BINARY_DIR}/gmock-1.7.0/gtest EXCLUDE_FROM_ALL)
Expand Down

0 comments on commit 95ab01e

Please sign in to comment.