Skip to content

Commit 302f113

Browse files
committed
Consider number of cores in the workflow
1 parent 5c9fa68 commit 302f113

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ assignees: ''
1616
- [ ] *bug - logic error*
1717

1818
**Describe the bug**
19+
<!--Please be civil. This is an environment for collaboration.-->
1920

2021
**Steps to Reproduce**
2122

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ assignees: ''
1515
- [ ] *enhancement - plot categories*
1616

1717
**The problem**
18+
<!--Please be civil. This is an environment for collaboration.-->
1819

1920
**The solution I'd like**
2021

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ assignees: ''
77

88
---
99

10-
10+
<!--Please be civil. This is an environment for collaboration.-->

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: Matplotplusplus
22

33
on:
44
push:
5-
paths-ignore:
5+
paths-ignore:
66
- '**.md'
7+
- 'README.md'
78
- '.github/**'
89
- '!.github/workflows/build.yml'
910
- 'documentation/**'
1011
- '.clang-format'
1112
- '.gitignore'
1213
- 'LICENSE'
1314
pull_request:
14-
paths-ignore:
15+
paths-ignore:
1516
- '**.md'
17+
- 'README.md'
1618
- '.github/**'
1719
- '!.github/workflows/build.yml'
1820
- 'documentation/**'
@@ -36,6 +38,7 @@ jobs:
3638
cmake_extra_args: -G "Visual Studio 16 2019" -A Win32,
3739
sudocmd: "",
3840
artifact_name: "Windows x86",
41+
cores: 2,
3942
}
4043
- {
4144
name: "Windows/2019/Static/X64/Release",
@@ -44,6 +47,7 @@ jobs:
4447
cmake_extra_args: -G "Visual Studio 16 2019" -A x64 -DCMAKE_CXX_FLAGS="/O2",
4548
sudocmd: "",
4649
artifact_name: "Windows x64",
50+
cores: 2,
4751
}
4852
- {
4953
name: "Ubuntu/18.04/Static/X64/Release",
@@ -52,6 +56,7 @@ jobs:
5256
cmake_extra_args: "-DCMAKE_C_COMPILER=/usr/bin/gcc-8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-8 -DCMAKE_CXX_FLAGS=\"-O2\"",
5357
sudocmd: "sudo",
5458
artifact_name: "Linux",
59+
cores: 2,
5560
}
5661
- {
5762
name: "MacOSX/10.15/Static/X64/Release",
@@ -60,6 +65,7 @@ jobs:
6065
cmake_extra_args: "-DCMAKE_CXX_FLAGS=\"-O2\"",
6166
sudocmd: "sudo",
6267
artifact_name: "MacOSX",
68+
cores: 4,
6369
}
6470
steps:
6571
- uses: actions/checkout@v2
@@ -71,10 +77,10 @@ jobs:
7177
cmake .. ${{ matrix.config.cmake_extra_args }} -DCMAKE_BUILD_TYPE=${{ matrix.config.config }}
7278
- name: Build
7379
working-directory: ./build
74-
run: cmake --build . -j 2 --config ${{ matrix.config.config }}
80+
run: cmake --build . -j ${{ matrix.config.cores }} --config ${{ matrix.config.config }}
7581
- name: Test
7682
working-directory: ./build
77-
run: ctest -j 2 -C Release
83+
run: ctest -j ${{ matrix.config.cores }} -C ${{ matrix.config.config }}
7884
- name: Install
7985
working-directory: ./build
8086
run: ${{ matrix.config.sudocmd }} cmake --install .

0 commit comments

Comments
 (0)