From 0ab7f90578bcc8983c24a986b817ffeb5791fccc Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 21 Aug 2020 19:05:27 -0400 Subject: [PATCH] Use Debian experimental in CI to match LLVM between rustc and clang --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7339536f7..a7a620417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -111,12 +111,17 @@ jobs: runs-on: ubuntu-latest # Ubuntu's version of rustc uses its own LLVM instead of being a real native package. # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS. - container: debian:testing + # We further (temporarily) use Debian experimental since testing links rustc against the + # brand-new llvm-10, but clang/llvm still default to LLVM 9. + container: debian:experimental env: TOOLCHAIN: stable steps: - name: Install native Rust toolchain, Valgrind, and build utilitis run: | + echo 'Package: llvm llvm-runtime clang lld' > /etc/apt/preferences.d/99-llvm10 + echo 'Pin: release n=experimental' >> /etc/apt/preferences.d/99-llvm10 + echo 'Pin-Priority: 995' >> /etc/apt/preferences.d/99-llvm10 apt-get update apt-get -y dist-upgrade apt-get -y install cargo valgrind lld git g++ clang -- 2.39.5