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
|
|
|
|
2020-10-03 01:36:51 -05:00
|
|
|
# WebAssembly (wasm-bindgen)
|
2021-04-15 22:24:32 -05:00
|
|
|
- name: "wasm32-unknown-unknown (firefox)"
|
2020-10-03 01:36:51 -05:00
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
addons:
|
2021-04-15 22:24:32 -05:00
|
|
|
firefox: latest-nightly
|
2020-10-03 01:36:51 -05:00
|
|
|
install:
|
|
|
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
script:
|
2021-04-15 22:24:32 -05:00
|
|
|
- wasm-pack test --firefox --headless crates/core_simd
|
|
|
|
- wasm-pack test --firefox --headless crates/core_simd --release
|
2020-10-07 03:39:56 -05:00
|
|
|
|
2021-04-16 13:33:02 -05:00
|
|
|
# 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
|
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
|