Sfoglia il codice sorgente

chore: enable parallel builds in cmake

Almamu 1 anno fa
parent
commit
70a1f2da65
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      .github/workflows/cmake.yml

+ 3 - 3
.github/workflows/cmake.yml

@@ -56,7 +56,7 @@ jobs:
 
     - name: Build
       # Build your program with the given configuration
-      run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
+      run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel
 
   build-x11-wayland:
     permissions:
@@ -105,7 +105,7 @@ jobs:
 
       - name: Build
         # Build your program with the given configuration
-        run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
+        run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel
 
       - name: Perform CodeQL Analysis
         if: ${{ matrix.os == 'ubuntu-24.04' && matrix.build_type == 'Debug' }}
@@ -146,4 +146,4 @@ jobs:
 
     - name: Build
       # Build your program with the given configuration
-      run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
+      run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel