Skip to content

Commit 0aaf649

Browse files
committed
CI: Add llvm-18 bin directory to GITHUB_PATH
Ensure that llvm-ar and other LLVM tools from version 18 are available in the PATH during CI builds. Without this, only the versioned binaries (e.g. llvm-ar-18) are found, which can cause build failures when unversioned tool names are expected.
1 parent 6fd635b commit 0aaf649

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
wget https://apt.llvm.org/llvm.sh
5353
sudo chmod +x ./llvm.sh
5454
sudo ./llvm.sh 18
55+
echo "/usr/lib/llvm-18/bin" >> $GITHUB_PATH
5556
shell: bash
5657
- name: Install compiler
5758
id: install_cc
@@ -313,6 +314,7 @@ jobs:
313314
wget https://apt.llvm.org/llvm.sh
314315
chmod +x ./llvm.sh
315316
./llvm.sh 18
317+
echo 'export PATH=/usr/lib/llvm-18/bin:$PATH' >> /etc/profile
316318
# FIXME: gcc build fails on Aarch64/Linux hosts
317319
env: |
318320
CC: clang-18
@@ -342,6 +344,7 @@ jobs:
342344
brew install make dtc expect sdl2 sdl2_mixer bc e2fsprogs p7zip llvm@18 dcfldd
343345
.ci/riscv-toolchain-install.sh
344346
echo "${{ github.workspace }}/toolchain/bin" >> $GITHUB_PATH
347+
echo "$(brew --prefix llvm@18)/bin" >> $GITHUB_PATH
345348
- name: Install compiler
346349
id: install_cc
347350
uses: rlalik/setup-cpp-compiler@master

0 commit comments

Comments
 (0)