[gimp/wip/Jehan/gitlab-ci-win-32-bit] Avoid disk space issues.



commit 37ece398f2469745a25df5d551fbe124776a517b
Author: Jehan <jehan girinstud io>
Date:   Wed May 12 11:17:39 2021 +0200

    Avoid disk space issues.

 .gitlab-ci.yml                                | 4 ++--
 build/windows/gitlab-ci/package-gimp-msys2.sh | 9 +++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34c9c338b0..80b2e13dc7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -251,7 +251,7 @@ gimp-win64-native:
     expire_in: 1 day
     paths:
     - _install-w64
-    - _build-w64
+    #- _build-w64
   cache:
     paths:
     - _ccache/
@@ -297,7 +297,7 @@ gimp-win32-native:
     expire_in: 1 day
     paths:
     - _install-w32
-    - _build-w32
+    #- _build-w32
   cache:
     paths:
     - _ccache/
diff --git a/build/windows/gitlab-ci/package-gimp-msys2.sh b/build/windows/gitlab-ci/package-gimp-msys2.sh
index 6a5b2e0ec8..33a3d04524 100644
--- a/build/windows/gitlab-ci/package-gimp-msys2.sh
+++ b/build/windows/gitlab-ci/package-gimp-msys2.sh
@@ -37,8 +37,7 @@ rm -f /c/msys64/mingw64/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dl
 # Update everything
 pacman --noconfirm -Suy
 
-# Install the required packages
-pacman --noconfirm -S --needed \
+export PACKAGES=\
     base-devel \
     mingw-w64-$MSYS2_ARCH-binutils \
     mingw-w64-$MSYS2_ARCH-toolchain \
@@ -80,6 +79,9 @@ pacman --noconfirm -S --needed \
     mingw-w64-$MSYS2_ARCH-vala \
     mingw-w64-$MSYS2_ARCH-xpm-nox
 
+# Install the required packages
+pacman --noconfirm -S --needed ${PACKAGES}
+
 export GIMP_PREFIX="`realpath ./_install`${ARTIFACTS_SUFFIX}"
 export PATH="$GIMP_PREFIX/bin:$PATH"
 
@@ -217,3 +219,6 @@ for dll in ${GIMP_DISTRIB}/lib/gimp/2.99/plug-ins/*/*.exe; do
   python3 build/windows/gitlab-ci/dll_link.py $dll ${GIMP_PREFIX}/ ${GIMP_DISTRIB};
   python3 build/windows/gitlab-ci/dll_link.py $dll ${MSYS_PREFIX}/ ${GIMP_DISTRIB};
 done
+
+# Uninstall the packages to avoid disk space issues in the CI.
+pacman --noconfirm --remove -S ${PACKAGES}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]