Skip to content

Commit a6b7696

Browse files
committed
fix ci
1 parent d20db24 commit a6b7696

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ jobs:
9696
if: ${{ startsWith(matrix.os, 'ubuntu') && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
9797
run: |
9898
apt-get install -y lsb-release wget software-properties-common gnupg
99-
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/llvm.list
100-
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-defaults main" | tee -a /etc/apt/sources.list.d/llvm.list
101-
apt-get update -y
102-
apt-get install -y llvm-defaults clang
99+
wget https://apt.llvm.org/llvm.sh
100+
chmod +x llvm.sh
101+
./llvm.sh 18 # install LLVM version 18
102+
update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-18 18
103+
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 18
104+
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 18
103105
- name: Setup Python
104106
if: ${{ startsWith(matrix.os, 'ubuntu') && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
105107
run: |

0 commit comments

Comments
 (0)