From a6c8d81492df28a6234745f7299040921520bbf3 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 21 Jun 2018 18:16:20 -0700 Subject: [PATCH] add avx2's various combinations to matrix --- .travis.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c24cb18..29afb99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,9 +24,46 @@ matrix: script: # don't run tests, since dev-dependencies don't build on 1.10 - cargo build --no-default-features - cargo build + + # with sudo the worker has avx2 support + - rust: nightly + sudo: true + env: RUSTFLAGS="-C target_feature=+avx2" + - rust: nightly + sudo: true + env: RUSTFLAGS="-C target_feature=sse4.2" - rust: nightly - sudo: true # supposedly with sudo, the worker has avx2 support? + sudo: true + env: RUSTFLAGS="-C target_feature=+sse4.2,+avx2" + - rust: nightly + sudo: true + env: CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2,+avx2" + + - rust: beta + sudo: true + env: RUSTFLAGS="-C target_feature=+avx2" + - rust: beta + sudo: true + env: RUSTFLAGS="-C target_feature=+sse4.2" + - rust: beta + sudo: true + env: RUSTFLAGS="-C target_feature=+sse4.2,+avx2" + - rust: beta + sudo: true + env: CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2,+avx2" + + - rust: stable + sudo: true env: RUSTFLAGS="-C target_feature=+avx2" + - rust: stable + sudo: true + env: RUSTFLAGS="-C target_feature=+sse4.2" + - rust: stable + sudo: true + env: RUSTFLAGS="-C target_feature=+sse4.2,+avx2" + - rust: stable + sudo: true + env: CARGO_CFG_HTTPARSE_DISABLE_SIMD_COMPILETIME=1 RUSTFLAGS="-C target_feature=+sse4.2,+avx2" script: - cargo build --no-default-features