variables: XDG_CACHE_HOME: $CI_PROJECT_DIR/.cache CARGO_HOME: $CI_PROJECT_DIR/.cache/.cargo RUST_BACKTRACE: 1 stages: - build rust-latest: stage: build image: rust:latest script: - 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"] 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 image: rustlang/rust:nightly script: - cargo build --verbose --no-default-features --features="$FEATURES" - cargo test --verbose --no-default-features --features="$FEATURES" parallel: matrix: - FEATURES: ["stdsimd,fma,ir", "stdsimd,ir"] cache: paths: - .cache