Skip to content

Commit f37d276

Browse files
committed
CIの設定を追加
1 parent cc1b841 commit f37d276

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = false
1313

1414
[*.{c,cpp,h,hpp}]
1515
indent_size = 4
16+
17+
[*.{yml,yaml}]
18+
indent_size = 2

.github/workflows/cmake.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,25 @@ on:
55
branches: [ "master" ]
66
pull_request:
77
branches: [ "master" ]
8+
workflow_dispatch:
89

910
env:
10-
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1111
BUILD_TYPE: Release
1212

1313
jobs:
1414
build:
15-
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
16-
# You can convert this to a matrix build if you need cross-platform coverage.
17-
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
15+
timeout-minutes: 10
1816
runs-on: ubuntu-latest
1917

2018
steps:
2119
- uses: actions/checkout@v3
2220

2321
- name: Configure CMake
24-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
25-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
2622
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2723

2824
- name: Build
29-
# Build your program with the given configuration
3025
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3126

3227
- name: Test
3328
working-directory: ${{github.workspace}}/build
34-
# Execute tests defined by the CMake configuration.
35-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
3629
run: ctest -C ${{env.BUILD_TYPE}}
37-

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
cmake_minimum_required(VERSION 3.24)
22

3-
SET(CMAKE_CXX_COMPILER C:/msys64/mingw64/bin/clang++.exe)
4-
SET(CMAKE_C_COMPILER C:/msys64/mingw64/bin/clang.exe)
5-
63
project(jsonparser_test CXX)
74

85
include(FetchContent)

0 commit comments

Comments
 (0)