about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2022-06-29 17:35:57 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2022-06-29 17:47:02 +0200
commit18350b70abdce808c611d5c1e68752c8302c55a3 (patch)
tree1a22edbcea8975d34f422ddd025ea8c4d16089bb
parent78e4713963277f4701ffe2fb15345807079fc180 (diff)
downloadrust-18350b70abdce808c611d5c1e68752c8302c55a3.tar.gz
rust-18350b70abdce808c611d5c1e68752c8302c55a3.zip
Parallelize CI tests
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 9 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4e2647dd427..4867db02b3f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,6 +19,13 @@ jobs:
           - { gcc: "libgccjit.so", extra: "" }
           - { gcc: "libgccjit_without_int128.so", extra: "" }
           - { gcc: "libgccjit12.so", extra: "--no-default-features" }
+        commands: [
+          "--mini-tests",
+          "--std-tests",
+          "--test-libcore",
+          "--extended-tests",
+          "--test-rustc",
+        ]
 
     steps:
     - uses: actions/checkout@v2
@@ -104,25 +111,9 @@ jobs:
         command: build
         args: --release
 
-    - name: Test mini_tests
+    - name: Run tests
       run: |
-        ./test.sh --release --clean --build-sysroot --mini-tests ${{ matrix.libgccjit_version.extra }}
-
-    - name: Test std_tests
-      run: |
-        ./test.sh --release --std-tests ${{ matrix.libgccjit_version.extra }}
-
-    - name: Test test_libcore
-      run: |
-        ./test.sh --release --test-libcore ${{ matrix.libgccjit_version.extra }}
-
-    - name: Test extended_sysroot_tests
-      run: |
-        ./test.sh --release --extended-tests ${{ matrix.libgccjit_version.extra }}
-
-    - name: Test test_rustc
-      run: |
-        ./test.sh --release --test-rustc ${{ matrix.libgccjit_version.extra }}
+        ./test.sh --release --clean --build-sysroot ${{ matrix.commands }} ${{ matrix.libgccjit_version.extra }}
 
   duplicates:
     runs-on: ubuntu-latest