From: Matt Corallo Date: Fri, 21 Aug 2020 23:05:27 +0000 (-0400) Subject: Use Debian experimental in CI to match LLVM between rustc and clang X-Git-Tag: v0.0.12~30^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;ds=sidebyside;h=0ab7f90578bcc8983c24a986b817ffeb5791fccc;p=rust-lightning Use Debian experimental in CI to match LLVM between rustc and clang --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7339536f..a7a62041 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