Skip to content

Commit 0ab7f90

Browse files
committed
Use Debian experimental in CI to match LLVM between rustc and clang
1 parent 3c12b0d commit 0ab7f90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,17 @@ jobs:
111111
runs-on: ubuntu-latest
112112
# Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
113113
# This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
114-
container: debian:testing
114+
# We further (temporarily) use Debian experimental since testing links rustc against the
115+
# brand-new llvm-10, but clang/llvm still default to LLVM 9.
116+
container: debian:experimental
115117
env:
116118
TOOLCHAIN: stable
117119
steps:
118120
- name: Install native Rust toolchain, Valgrind, and build utilitis
119121
run: |
122+
echo 'Package: llvm llvm-runtime clang lld' > /etc/apt/preferences.d/99-llvm10
123+
echo 'Pin: release n=experimental' >> /etc/apt/preferences.d/99-llvm10
124+
echo 'Pin-Priority: 995' >> /etc/apt/preferences.d/99-llvm10
120125
apt-get update
121126
apt-get -y dist-upgrade
122127
apt-get -y install cargo valgrind lld git g++ clang

0 commit comments

Comments
 (0)