about summary refs log tree commit diff
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2022-06-29 17:36:30 -0400
committerGitHub <noreply@github.com>2022-06-29 17:36:30 -0400
commitc5b9a7a5a3e6c9fcaad1c9dd049992a473a12da9 (patch)
tree1a22edbcea8975d34f422ddd025ea8c4d16089bb
parent78e4713963277f4701ffe2fb15345807079fc180 (diff)
parent18350b70abdce808c611d5c1e68752c8302c55a3 (diff)
downloadrust-c5b9a7a5a3e6c9fcaad1c9dd049992a473a12da9.tar.gz
rust-c5b9a7a5a3e6c9fcaad1c9dd049992a473a12da9.zip
Merge pull request #193 from GuillaumeGomez/ci-parallel
Parallelize CI
-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