Skip to content

Commit 8659874

Browse files
committed
ci: fix ci by ensure clang-11 is defualt clang
1 parent b16ceb0 commit 8659874

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.travis.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ branches:
66
- trying
77
# Not really necessary, just to get a green badge on “master”
88
- master
9+
- v0.8
910
language: rust
1011
os: linux
1112
dist: focal
@@ -18,24 +19,34 @@ addons:
1819
- clang-11
1920
- cmake
2021
- qemu-user
21-
rust:
22-
- stable
22+
before_script:
23+
- printenv
24+
- whereis clang && clang --version
25+
# remove clang-16 path from PATH
26+
- export PATH=$(echo $PATH | sed -e 's|:/usr/local/clang-16.0.0/bin||')
27+
# setup clang-11 as default clang
28+
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100
29+
- whereis clang && clang --version
30+
2331
env:
24-
jobs:
25-
# Matrix build of 3 targets against Rust stable
26-
- TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
27-
- TARGET=aarch64-unknown-linux-musl
28-
- TARGET=x86_64-fortanix-unknown-sgx
2932
global:
3033
- RUST_BACKTRACE=1
3134
# Pinned to this particular nightly version because of core_io. This can be
3235
# re-pinned whenever core_io is updated to the latest nightly.
3336
- CORE_IO_NIGHTLY=nightly-2021-03-25
3437
jobs:
3538
include:
36-
# Test additional Rust toolchains on x86_64
37-
- rust: beta
38-
- rust: nightly
39-
- rust: nightly-2021-03-25
39+
- env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
40+
rust: nightly-2021-03-25
41+
- env: TARGET=x86_64-fortanix-unknown-sgx
42+
rust: stable
43+
- env: TARGET=aarch64-unknown-linux-musl
44+
rust: stable
45+
- env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
46+
rust: nightly
47+
- env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
48+
rust: beta
49+
- env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true
50+
rust: stable
4051
script:
4152
- ./ct.sh

0 commit comments

Comments
 (0)