@@ -2,17 +2,19 @@ name: Matplotplusplus
22
33on :
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/**'
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" ,
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" ,
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" ,
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