expand build matrix
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 7 May 2021 03:17:05 +0000 (20:17 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 7 May 2021 03:17:05 +0000 (20:17 -0700)
.gitlab-ci.yml

index 5605a1c093c6fedbe747e1c5fcb0e118ec5f9c90..c7adb6b8e72ebd0870664c1cec84bf85cf9e7705 100644 (file)
@@ -5,12 +5,18 @@ rust-latest:
     stage: build
     image: rust:latest
     script:
-        - cargo build --verbose --features=fma,f16,ir
-        - cargo test --verbose --features=fma,f16,ir
+        - cargo build --verbose --no-default-features --features="$FEATURES"
+        - cargo test --verbose --no-default-features --features="$FEATURES"
+    parallel:
+        matrix:
+            - FEATURES: ["", "fma,ir", "f16,ir", "fma,f16,ir"]
 
 rust-nightly:
     stage: build
     image: rustlang/rust:nightly
     script:
-        - cargo build --verbose --features=stdsimd
-        - cargo test --verbose --features=stdsimd
+        - cargo build --verbose --no-default-features --features="$FEATURES"
+        - cargo test --verbose --no-default-features --features="$FEATURES"
+    parallel:
+        matrix:
+            - FEATURES: ["stdsimd,fma,ir", "stdsimd,ir"]