rust/.travis.yml
2021-04-16 11:33:23 -07:00

83 lines
2.2 KiB
YAML

branches:
only:
- master
language: rust
rust:
- nightly
matrix:
fast_finish: true
include:
# Linux (aarch64)
- name: "aarch64-unknown-linux-gnu (neon)"
os: linux
arch: arm64
- name: "aarch64-unknown-linux-gnu (neon, sve)"
os: linux
arch: arm64
env: RUSTFLAGS=-Ctarget-feature=+sve
- name: "aarch64-unknown-linux-gnu (native, see log for cfg)"
os: linux
arch: arm64
env: RUSTFLAGS=-Ctarget-cpu=native
# Linux (powerpc64le)
- name: "powerpc64le-unknown-linux-gnu (altivec, vsx, power8-*)"
os: linux
arch: ppc64le
- name: "powerpc64le-unknown-linux-gnu (native, see log for cfg)"
os: linux
arch: ppc64le
env: RUSTFLAGS=-Ctarget-cpu=native
# Linux (x86_64) (for AVX512, which sadly seems to only *usually* be present
# on the github actions linux runner...)
- name: "x86_64-unknown-linux-gnu+avx512vl"
os: linux
arch: amd64
env: RUSTFLAGS=-Ctarget-feature=+avx512vl
# WebAssembly (wasm-bindgen)
- name: "wasm32-unknown-unknown (firefox)"
os: linux
arch: amd64
addons:
firefox: latest-nightly
install:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- wasm-pack test --firefox --headless crates/core_simd
- wasm-pack test --firefox --headless crates/core_simd --release
# FIXME: See https://github.com/rust-lang/stdsimd/issues/92
# - name: "wasm32-unknown-unknown+simd128 (firefox)"
# os: linux
# arch: amd64
# addons:
# firefox: latest-nightly
# install:
# - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# script:
# - export RUSTFLAGS="-C target-feature=+simd128"
# - wasm-pack test --firefox --headless crates/core_simd
# - wasm-pack test --firefox --headless crates/core_simd --release
script:
- echo "## Requested target configuration (RUSTFLAGS=$RUSTFLAGS)"
- rustc --print=cfg $RUSTFLAGS
- echo "## Supported target configuration"
- rustc --print=cfg -Ctarget-cpu=native
- echo "\n---\n"
- echo "## Running tests (debug)"
- cargo test -v
- echo "## Running tests (release)"
- cargo test -v --release