remove note to convert to sin_cos_tau instead sin_cos_pi
[vector-math.git] / .gitlab-ci.yml
index c7adb6b8e72ebd0870664c1cec84bf85cf9e7705..e18e7728dfd041f1723eda29f94468234dc5b1db 100644 (file)
@@ -1,3 +1,8 @@
+variables:
+    XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache
+    CARGO_HOME: $CI_PROJECT_DIR/.cache/.cargo
+    RUST_BACKTRACE: 1
+
 stages:
     - build
 
@@ -10,6 +15,32 @@ rust-latest:
     parallel:
         matrix:
             - FEATURES: ["", "fma,ir", "f16,ir", "fma,f16,ir"]
+    cache:
+        paths:
+            - .cache
+
+rust-latest-release:
+    stage: build
+    image: rust:latest
+    script:
+        - cargo build --verbose --release --no-default-features --features="$FEATURES"
+        - cargo test --verbose --release --no-default-features --features="$FEATURES"
+    parallel:
+        matrix:
+            - FEATURES:
+                  [
+                      "",
+                      "fma,ir",
+                      "f16,ir",
+                      "fma,f16,ir",
+                      "full_tests",
+                      "full_tests,fma",
+                      "full_tests,fma,f16",
+                      "full_tests,f16",
+                  ]
+    cache:
+        paths:
+            - .cache
 
 rust-nightly:
     stage: build
@@ -20,3 +51,6 @@ rust-nightly:
     parallel:
         matrix:
             - FEATURES: ["stdsimd,fma,ir", "stdsimd,ir"]
+    cache:
+        paths:
+            - .cache