Skip to content

Commit

Permalink
ci: fix ci by ensure clang-11 is defualt clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Aug 30, 2023
1 parent b16ceb0 commit 8659874
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -18,24 +19,34 @@ 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
# re-pinned whenever core_io is updated to the latest nightly.
- 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

0 comments on commit 8659874

Please sign in to comment.