rust/.travis.yml

83 lines
2.2 KiB
YAML
Raw Normal View History

2021-02-13 16:13:55 -06:00
branches:
only:
- master
2020-09-28 04:52:28 -05:00
language: rust
rust:
- nightly
matrix:
fast_finish: true
include:
# Linux (aarch64)
2020-10-07 03:39:56 -05:00
- name: "aarch64-unknown-linux-gnu (neon)"
2020-09-28 04:52:28 -05:00
os: linux
arch: arm64
2020-09-28 18:02:16 -05:00
2020-10-07 03:39:56 -05:00
- name: "aarch64-unknown-linux-gnu (neon, sve)"
2020-09-28 04:52:28 -05:00
os: linux
arch: arm64
2020-10-07 03:39:56 -05:00
env: RUSTFLAGS=-Ctarget-feature=+sve
2020-09-28 18:02:16 -05:00
2020-10-07 03:39:56 -05:00
- name: "aarch64-unknown-linux-gnu (native, see log for cfg)"
2020-09-28 04:52:28 -05:00
os: linux
arch: arm64
2020-10-07 03:39:56 -05:00
env: RUSTFLAGS=-Ctarget-cpu=native
2020-09-28 18:02:16 -05:00
2020-10-07 03:39:56 -05:00
# Linux (powerpc64le)
- name: "powerpc64le-unknown-linux-gnu (altivec, vsx, power8-*)"
2020-09-28 04:52:28 -05:00
os: linux
arch: ppc64le
2020-09-28 18:02:16 -05:00
2020-10-07 03:39:56 -05:00
- name: "powerpc64le-unknown-linux-gnu (native, see log for cfg)"
2020-09-28 04:52:28 -05:00
os: linux
arch: ppc64le
2020-10-07 03:39:56 -05:00
env: RUSTFLAGS=-Ctarget-cpu=native
2020-09-28 18:02:16 -05:00
2020-10-07 03:39:56 -05:00
# 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
2020-09-28 18:02:16 -05:00
arch: amd64
2020-10-07 03:39:56 -05:00
env: RUSTFLAGS=-Ctarget-feature=+avx512vl
2020-09-28 18:02:16 -05:00
# WebAssembly (wasm-bindgen)
- name: "wasm32-unknown-unknown (node, firefox, chrome)"
os: linux
arch: amd64
addons:
firefox: latest
2020-10-07 03:39:56 -05:00
chrome: stable
install:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
- wasm-pack test --node --firefox --chrome --headless crates/core_simd
2020-10-07 03:39:56 -05:00
- wasm-pack test --node --firefox --chrome --headless crates/core_simd --release
- name: "wasm32-unknown-unknown+simd128 (chrome)"
os: linux
arch: amd64
addons:
2020-10-07 03:39:56 -05:00
chrome: stable
install:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
script:
2020-10-07 03:39:56 -05:00
- export RUSTFLAGS="-C target-feature=+simd128"
- wasm-pack test --chrome --headless crates/core_simd
2020-10-07 03:39:56 -05:00
- wasm-pack test --chrome --headless crates/core_simd --release
2020-09-28 04:52:28 -05:00
script:
2020-10-07 03:39:56 -05:00
- 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