Skip to content

Commit 67631ac

Browse files
committed
test 13
1 parent ef3921e commit 67631ac

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/cmake4win.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ env:
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
1518
runs-on: windows-latest
1619

17-
strategy:
18-
matrix:
19-
cpp_std: [ "11", "14", "17", "20" ]
20-
fail-fast: false
21-
2220
steps:
23-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v2
22+
23+
- 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
26+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2427

25-
- name: Build
26-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
28+
- name: Build
29+
# Build your program with the given configuration
30+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

src/GraphCtrl/GraphParam/GParam.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@
1111

1212
#include <set>
1313
#include <mutex>
14-
#include <shared_mutex>
15-
#include <optional>
1614

1715
#include "GParamObject.h"
1816

1917
CGRAPH_NAMESPACE_BEGIN
2018

2119
class GParam : public GParamObject {
2220
public:
23-
#if __cplusplus >= 201703L
21+
#if __cplusplus >= 201703L && _CGRAPH_GPARAM_RWLOCK_ENABLE_
2422
std::shared_mutex _param_shared_lock_; // 用于参数互斥的锁信息
2523
#else
2624
std::recursive_mutex _param_shared_lock_;

0 commit comments

Comments
 (0)