From 499a16637e7847cad92d0ae85aa9b027af42d2ae Mon Sep 17 00:00:00 2001 From: Rudra Saraswat Date: Sun, 2 Jun 2024 12:42:24 +0000 Subject: [PATCH] ci: clear package cache before mkarchiso, and retry if fails --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d007014..31e671a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,8 @@ stages: # List of stages for jobs, and their order of execution build-job: # This job runs in the build stage, which runs first. stage: build script: - - mkarchiso -v -w workdir/ -o out/ . + - pacman -Scc + - mkarchiso -v -w workdir/ -o out/ . || mkarchiso -v -w workdir/ -o out/ . artifacts: paths: - out/*