]> xenbits.xensource.com Git - xtf.git/commitdiff
CI: Expand matrix for more toolchain combinations
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Apr 2021 22:37:55 +0000 (23:37 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Apr 2021 22:45:12 +0000 (23:45 +0100)
In particular, this now checks LLVM= options for full LLVM toolchains.
Organised to allow arm32/64 support to slot in easily in due couse.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
.github/workflows/build.yml

index 5d101d59b5cf13fab2649d4ff4c8f2c0a2e37451..bd2cc1412b414f1af1ccb82512d274b08f9a9762 100644 (file)
@@ -7,7 +7,25 @@ jobs:
 
     strategy:
       matrix:
-        compiler: [gcc-7, gcc-8, gcc-9, gcc-10, clang-9, clang-10, clang-11]
+        arch: [x86]
+        compiler: [llvm-9, llvm-10, llvm-11]
+
+        include:
+          - arch: x86
+            compiler: gcc-7
+          - arch: x86
+            compiler: gcc-8
+          - arch: x86
+            compiler: gcc-9
+          - arch: x86
+            compiler: gcc-10
+
+          - arch: x86
+            compiler: clang-9
+          - arch: x86
+            compiler: clang-10
+          - arch: x86
+            compiler: clang-11
 
     runs-on: ubuntu-latest
 
@@ -21,4 +39,11 @@ jobs:
 
     - name: Build
       run: |
-        make -j`nproc` CC=${{matrix.compiler}}
+        # Select appropriate LLVM= or CC=
+        c=${{matrix.compiler}}
+        case $c in
+            llvm-*)  COMP="LLVM=${c#llvm}" ;;
+            *)       COMP="CC=$c" ;;
+        esac
+
+        make -j`nproc` ARCH=${{matrix.arch}} $CROSS $COMP