Skip to content

Commit ced9e41

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 ced9e41

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
@@ -319,6 +320,7 @@ jobs:
319320
PARALLEL: ${{ env.PARALLEL }}
320321
# Append custom commands here
321322
run: |
323+
export PATH=/usr/lib/llvm-18/bin:$PATH
322324
make artifact
323325
make $PARALLEL
324326
make check $PARALLEL
@@ -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)