mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
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:
commit
205766fc05
27
.github/workflows/ccpp.yml
vendored
Normal file
27
.github/workflows/ccpp.yml
vendored
Normal 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 .
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user