File tree Expand file tree Collapse file tree 4 files changed +26
-46
lines changed Expand file tree Collapse file tree 4 files changed +26
-46
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
benchmark :
14
14
name : Performance regression check
15
- runs-on : ubuntu-latest
15
+ runs-on : ${{ matrix.os }}
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ os : [ubuntu-latest, macos-latest, windows-latest]
16
20
steps :
17
21
# - name: Install gtest manually
18
22
# run: sudo apt-get install libgtest-dev
31
35
- name : Configure CMake
32
36
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
33
37
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
34
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON
38
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON
35
39
36
40
- name : Build
37
41
# Build your program with the given configuration
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
benchmark :
13
13
name : Performance regression check
14
- runs-on : ubuntu-latest
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ os : [ubuntu-latest, macos-latest, windows-latest]
15
19
steps :
16
20
# - name: Install gtest manually
17
21
# run: sudo apt-get install libgtest-dev
Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
build :
15
- # The CMake configure and build commands are platform agnostic and should work equally
16
- # well on Windows or Mac. You can convert this to a matrix build if you need
17
- # cross-platform coverage.
18
- # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19
- runs-on : ubuntu-latest
15
+ # Define the operating systems you want to run the job on
16
+ runs-on : ${{ matrix.os }}
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ os : [ubuntu-latest, macos-latest, windows-latest]
21
+
20
22
21
23
steps :
22
24
# - name: Install gtest manually
37
39
- name : Configure CMake
38
40
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
39
41
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
40
- run : cmake -DTEST=ON -B ${{github.workspace}}/build
42
+ run : |
43
+ if [ ${{ matrix.os }} == 'windows-latest' ]; then
44
+ cmake -DTEST=ON -Dgtest_disable_pthreads=ON -B ${{github.workspace}}/build
45
+ else
46
+ cmake -DTEST=ON -B ${{github.workspace}}/build
47
+ fi;
48
+ shell : bash
49
+
41
50
42
51
- name : Build
43
52
# Build your program with the given configuration
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments