Skip to content

Commit f8978e5

Browse files
ThomasRaouxkarupayun
authored andcommitted
try to fix llvm build (triton-lang#8070)
1 parent 50206ff commit f8978e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/llvm-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ jobs:
240240
run: |
241241
# if this step crashes, it can leave behind a stale docker container
242242
docker container prune -f
243-
docker rmi -f $(docker images -q)
243+
244+
images=$(docker images -q)
245+
if [ -n "$images" ]; then
246+
docker rmi -f $images
247+
fi
244248
245249
docker build --tag llvm-build --build-arg llvm_dir=llvm-project \
246250
-f llvm-build/.github/workflows/llvm-build/almalinux.Dockerfile .

0 commit comments

Comments
 (0)