Skip to content

Commit

Permalink
ci: explictly install Clang 14 on Linux runners
Browse files Browse the repository at this point in the history
The nightly build jobs run on Ubuntu 20.04 to ensure the glibc version
is compatible with WPT.fyi runners. But this version of Ubuntu has an
older clang version (10) that is not compatible with mozjs.

This patch ensures both the nightly and regular linux jobs explicity
install Clang 14 using the KyleMayes/install-llvm-action@v2 action.

Fixes servo#34713.

Signed-off-by: Mukilan Thiyagarajan <[email protected]>
  • Loading branch information
mukilan committed Dec 20, 2024
1 parent adfee3d commit 61bfd2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ jobs:
run: |
git switch --detach
git reset --hard FETCH_HEAD
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
if: ${{ runner.environment != 'self-hosted' && !inputs.upload }} # not needed on ubuntu 20.04 used for nightly
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
- name: Install LLVM and Clang
if: ${{ runner.environment != 'self-hosted' }}
uses: KyleMayes/install-llvm-action@v2
with:
version: 14
- name: Setup Python
if: ${{ runner.environment != 'self-hosted' }}
uses: ./.github/actions/setup-python
Expand Down

0 comments on commit 61bfd2f

Please sign in to comment.