Merge branch 'master' into project_euler/master2

* master:
  set c99 standard as default
  checkout submodule as well
  use cd to build directory
  changed to checkout@master
  Create ccpp.yml
This commit is contained in:
Krishna Vedala 2020-04-08 09:28:49 -04:00
commit 205766fc05
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
2 changed files with 30 additions and 0 deletions

27
.github/workflows/ccpp.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: C/C++ CI
on: [push]
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@master
with:
submodules: true
- name: build directory
run: mkdir build && cd build
- name: configure
run: cmake .
- name: build
run: cmake --build .

View File

@ -13,6 +13,9 @@ include_directories(function_timer/include)
# include_directories(${CMAKE_BINARY_DIR}/include)
# link_directories(${CMAKE_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
add_subdirectory(conversions)
add_subdirectory(misc)
add_subdirectory(project_euler)