]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Add lane count marker type
[rust.git] / .travis.yml
1 branches:
2   only:
3     - master
4
5 language: rust
6 rust:
7   - nightly
8
9 matrix:
10   fast_finish: true
11   include:
12     # Linux (aarch64)
13     - name: "aarch64-unknown-linux-gnu (neon)"
14       os: linux
15       arch: arm64
16
17     - name: "aarch64-unknown-linux-gnu (neon, sve)"
18       os: linux
19       arch: arm64
20       env: RUSTFLAGS=-Ctarget-feature=+sve
21
22     - name: "aarch64-unknown-linux-gnu (native, see log for cfg)"
23       os: linux
24       arch: arm64
25       env: RUSTFLAGS=-Ctarget-cpu=native
26
27     # Linux (powerpc64le)
28     - name: "powerpc64le-unknown-linux-gnu (altivec, vsx, power8-*)"
29       os: linux
30       arch: ppc64le
31
32     - name: "powerpc64le-unknown-linux-gnu (native, see log for cfg)"
33       os: linux
34       arch: ppc64le
35       env: RUSTFLAGS=-Ctarget-cpu=native
36
37     # Linux (x86_64) (for AVX512, which sadly seems to only *usually* be present
38     # on the github actions linux runner...)
39     - name: "x86_64-unknown-linux-gnu+avx512vl"
40       os: linux
41       arch: amd64
42       env: RUSTFLAGS=-Ctarget-feature=+avx512vl
43
44     # WebAssembly (wasm-bindgen)
45     - name: "wasm32-unknown-unknown (firefox)"
46       os: linux
47       arch: amd64
48       addons:
49         firefox: latest-nightly
50       install:
51         - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
52       script:
53         - wasm-pack test --firefox --headless crates/core_simd
54         - wasm-pack test --firefox --headless crates/core_simd --release
55
56     # FIXME: See https://github.com/rust-lang/stdsimd/issues/92
57     # - name: "wasm32-unknown-unknown+simd128 (firefox)"
58     #   os: linux
59     #   arch: amd64
60     #   addons:
61     #     firefox: latest-nightly
62     #   install:
63     #     - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
64     #   script:
65     #     - export RUSTFLAGS="-C target-feature=+simd128"
66     #     - wasm-pack test --firefox --headless crates/core_simd
67     #     - wasm-pack test --firefox --headless crates/core_simd --release
68
69 script:
70   - echo "## Requested target configuration (RUSTFLAGS=$RUSTFLAGS)"
71   - rustc --print=cfg $RUSTFLAGS
72
73   - echo "## Supported target configuration"
74   - rustc --print=cfg -Ctarget-cpu=native
75
76   - echo "\n---\n"
77
78   - echo "## Running tests (debug)"
79   - cargo test -v
80
81   - echo "## Running tests (release)"
82   - cargo test -v --release