Skip to content

Commit e66c7eb

Browse files
committed
Keep Ubuntu 24.04 on jobs using LLVM 19 or LLVM 20
Restore llvm.sh in JIT jobs.
1 parent 040aa23 commit e66c7eb

4 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/jit.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/reusable-san.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
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

.github/workflows/reusable-ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
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

0 commit comments

Comments
 (0)