Skip to content

Commit 1a41774

Browse files
ThomasRaouxolegshyshkov
authored andcommitted
try to fix llvm build (triton-lang#8070)
1 parent d913190 commit 1a41774

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/llvm-build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,11 @@ jobs:
248248
run: |
249249
# if this step crashes, it can leave behind a stale docker container
250250
docker container prune -f
251-
docker rmi -f $(docker images -q)
251+
252+
images=$(docker images -q)
253+
if [ -n "$images" ]; then
254+
docker rmi -f $images
255+
fi
252256
253257
docker build --tag llvm-build --build-arg llvm_dir=llvm-project \
254258
-f llvm-build/.github/workflows/llvm-build/centos.Dockerfile .
@@ -271,7 +275,11 @@ jobs:
271275
run: |
272276
# if this step crashes, it can leave behind a stale docker container
273277
docker container prune -f
274-
docker rmi -f $(docker images -q)
278+
279+
images=$(docker images -q)
280+
if [ -n "$images" ]; then
281+
docker rmi -f $images
282+
fi
275283
276284
docker build --tag llvm-build --build-arg llvm_dir=llvm-project \
277285
-f llvm-build/.github/workflows/llvm-build/almalinux.Dockerfile .

0 commit comments

Comments
 (0)