File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,9 +272,11 @@ jobs:
272272 free-threading :
273273 - false
274274 - true
275+ # For BOLT jobs, https://apt.llvm.org/llvm.sh doesn't support LLVM 19
276+ # on Ubuntu 26.04, so stick to Ubuntu 24.04 until LLVM is upgraded.
275277 os :
276- - ubuntu-26 .04
277- - ubuntu-26 .04-arm
278+ - ubuntu-24 .04
279+ - ubuntu-24 .04-arm
278280 exclude :
279281 # Do not test BOLT with free-threading, to conserve resources
280282 - bolt : true
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ jobs:
161161 linux-extras :
162162 name : ${{ matrix.name }}
163163
164- runs-on : ubuntu-26.04
164+ # https://apt.llvm.org/llvm.sh doesn't support LLVM 19 on Ubuntu 26.04,
165+ # so stick to Ubuntu 24.04 until LLVM is upgraded.
166+ runs-on : ubuntu-24.04
165167 timeout-minutes : 60
166168 strategy :
167169 fail-fast : false
@@ -184,7 +186,8 @@ jobs:
184186 python-version : ' 3.11'
185187 - name : Build
186188 run : |
187- # On ubuntu-26.04 image, clang is clang-21 by default
189+ sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ env.LLVM_VERSION }}
190+ export PATH="$(llvm-config-${{ env.LLVM_VERSION }} --bindir):$PATH"
188191 if [ "${{ matrix.use_clang }}" = "true" ]; then
189192 export CC=clang-${{ env.LLVM_VERSION }}
190193 fi
Original file line number Diff line number Diff line change 2727 && ' (free-threading)'
2828 || ''
2929 }}
30- runs-on : ubuntu-26.04
30+ # https://apt.llvm.org/llvm.sh doesn't support LLVM 20 on Ubuntu 26.04,
31+ # so stick to Ubuntu 24.04 until LLVM is upgraded.
32+ runs-on : ubuntu-24.04
3133 timeout-minutes : 60
3234 steps :
3335 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Original file line number Diff line number Diff line change 4343 run : sudo ./.github/workflows/posix-deps-apt.sh
4444 - name : Install Clang and BOLT
4545 if : ${{ fromJSON(inputs.bolt-optimizations) }}
46+ # For BOLT jobs, https://apt.llvm.org/llvm.sh doesn't support LLVM 19
47+ # on Ubuntu 26.04, so stick to Ubuntu 24.04 until LLVM is upgraded.
4648 run : |
4749 sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 19
4850 sudo apt-get install --no-install-recommends bolt-19
You can’t perform that action at this time.
0 commit comments