@@ -37,18 +37,16 @@ jobs:
3737 if : success()
3838 shell : bash
3939 run : |
40- echo "cmake_minimum_required(VERSION 3.6)" > CMakeLists.txt
41- echo "Project(DiligentTools_Test)" >> CMakeLists.txt
42- echo "add_subdirectory(DiligentCore)" >> CMakeLists.txt
43- echo "add_subdirectory(DiligentTools)" >> CMakeLists.txt
40+ cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/Scripts/github_actions
41+ ./create_cmake.sh "$GITHUB_WORKSPACE"
4442 cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/Scripts/github_actions
4543 ./configure_cmake.sh "win10" "${{runner.workspace}}" ${{ matrix.config }} ${{ matrix.toolset }}
4644
4745 - name : Build
4846 if : success()
4947 working-directory : ${{runner.workspace}}/build
5048 shell : bash
51- run : cmake --build . --config ${{ matrix.config }} --target install
49+ run : cmake --build . --config ${{ matrix.config }} --target install -j2
5250
5351 - name : DiligentToolsTest
5452 if : success()
@@ -91,18 +89,16 @@ jobs:
9189 if : success()
9290 shell : bash
9391 run : |
94- echo "cmake_minimum_required(VERSION 3.6)" > CMakeLists.txt
95- echo "Project(DiligentTools_Test)" >> CMakeLists.txt
96- echo "add_subdirectory(DiligentCore)" >> CMakeLists.txt
97- echo "add_subdirectory(DiligentTools)" >> CMakeLists.txt
92+ cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/Scripts/github_actions
93+ ./create_cmake.sh "$GITHUB_WORKSPACE"
9894 cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/Scripts/github_actions
9995 ./configure_cmake.sh "win10-dev" "${{runner.workspace}}" ${{ matrix.config }} ${{ matrix.toolset }}
10096
10197 - name : Build
10298 if : success()
10399 working-directory : ${{runner.workspace}}/build
104100 shell : bash
105- run : cmake --build . --config ${{ matrix.config }} --target install
101+ run : cmake --build . --config ${{ matrix.config }} --target install -j2
106102
107103 - name : DiligentToolsTest
108104 if : success()
@@ -145,18 +141,16 @@ jobs:
145141 if : success()
146142 shell : bash
147143 run : |
148- echo "cmake_minimum_required(VERSION 3.6)" > CMakeLists.txt
149- echo "Project(DiligentTools_Test)" >> CMakeLists.txt
150- echo "add_subdirectory(DiligentCore)" >> CMakeLists.txt
151- echo "add_subdirectory(DiligentTools)" >> CMakeLists.txt
144+ cd $GITHUB_WORKSPACE/DiligentTools/BuildTools/Scripts/github_actions
145+ ./create_cmake.sh "$GITHUB_WORKSPACE"
152146 cd $GITHUB_WORKSPACE/DiligentCore/BuildTools/Scripts/github_actions
153147 ./configure_cmake.sh "win8" "${{runner.workspace}}" ${{ matrix.config }} ${{ matrix.toolset }}
154148
155149 - name : Build
156150 if : success()
157151 working-directory : ${{runner.workspace}}/build
158152 shell : bash
159- run : cmake --build . --config ${{ matrix.config }} --target install
153+ run : cmake --build . --config ${{ matrix.config }} --target install -j2
160154
161155 - name : DiligentToolsTest
162156 if : success()
0 commit comments