浏览代码

ci: run tests in parallel

Anonymous Maarten 2 年之前
父节点
当前提交
2adebcd6cc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      .github/workflows/main.yml
  2. 1 1
      .github/workflows/msvc.yml

+ 1 - 1
.github/workflows/main.yml

@@ -107,7 +107,7 @@ jobs:
         ${{ matrix.platform.source_cmd }}
         ${{ matrix.platform.source_cmd }}
         set -eu
         set -eu
         export SDL_TESTS_QUICK=1
         export SDL_TESTS_QUICK=1
-        ctest -VV --test-dir build/
+        ctest -VV --test-dir build/ -j2
         if test "${{ runner.os }}" = "Linux"; then
         if test "${{ runner.os }}" = "Linux"; then
           # This should show us the SDL_REVISION
           # This should show us the SDL_REVISION
           strings build/libSDL2-2.0.so.0 | grep SDL-
           strings build/libSDL2-2.0.so.0 | grep SDL-

+ 1 - 1
.github/workflows/msvc.yml

@@ -53,7 +53,7 @@ jobs:
       if: "! contains(matrix.platform.name, 'ARM')"
       if: "! contains(matrix.platform.name, 'ARM')"
       run: |
       run: |
         $env:SDL_TESTS_QUICK=1
         $env:SDL_TESTS_QUICK=1
-        ctest -VV --test-dir build/ -C Release
+        ctest -VV --test-dir build/ -C Release -j2
     - name: Install (CMake)
     - name: Install (CMake)
       run: |
       run: |
         echo "SDL2_DIR=$Env:GITHUB_WORKSPACE/prefix" >> $Env:GITHUB_ENV
         echo "SDL2_DIR=$Env:GITHUB_WORKSPACE/prefix" >> $Env:GITHUB_ENV