From 8659874234c2a705e287293225b8fcb97a39871f Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Tue, 29 Aug 2023 19:50:07 -0700 Subject: [PATCH] ci: fix ci by ensure clang-11 is defualt clang --- .travis.yml | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index c88f97024..fda8cdd07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ branches: - trying # Not really necessary, just to get a green badge on “master” - master + - v0.8 language: rust os: linux dist: focal @@ -18,14 +19,16 @@ addons: - clang-11 - cmake - qemu-user -rust: - - stable +before_script: + - printenv + - whereis clang && clang --version + # remove clang-16 path from PATH + - export PATH=$(echo $PATH | sed -e 's|:/usr/local/clang-16.0.0/bin||') + # setup clang-11 as default clang + - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100 + - whereis clang && clang --version + env: - jobs: - # Matrix build of 3 targets against Rust stable - - TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true - - TARGET=aarch64-unknown-linux-musl - - TARGET=x86_64-fortanix-unknown-sgx global: - RUST_BACKTRACE=1 # Pinned to this particular nightly version because of core_io. This can be @@ -33,9 +36,17 @@ env: - CORE_IO_NIGHTLY=nightly-2021-03-25 jobs: include: - # Test additional Rust toolchains on x86_64 - - rust: beta - - rust: nightly - - rust: nightly-2021-03-25 + - env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true + rust: nightly-2021-03-25 + - env: TARGET=x86_64-fortanix-unknown-sgx + rust: stable + - env: TARGET=aarch64-unknown-linux-musl + rust: stable + - env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true + rust: nightly + - env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true + rust: beta + - env: TARGET=x86_64-unknown-linux-gnu ZLIB_INSTALLED=true AES_NI_SUPPORT=true + rust: stable script: - ./ct.sh