mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
gitlab-ci: add a new "packaging" stage.
Unlike what I said in my previous commit, it still just takes too long to build the installer, whether I move some of the substeps around or whether I increase the max duration. So rather than increasing max duration a lot more, let's just add an intermediate stage.
This commit is contained in:
parent
7c4f12ee63
commit
076e4d687b
1 changed files with 60 additions and 14 deletions
|
@ -29,8 +29,9 @@ stages:
|
||||||
- prepare
|
- prepare
|
||||||
- dependencies
|
- dependencies
|
||||||
- gimp
|
- gimp
|
||||||
- analysis
|
- packaging
|
||||||
- distribution
|
- distribution
|
||||||
|
- analysis
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "1"
|
GIT_DEPTH: "1"
|
||||||
|
@ -279,8 +280,34 @@ gimp-win64-native:
|
||||||
script:
|
script:
|
||||||
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/build-gimp-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/build-gimp-msys2.sh"
|
||||||
|
artifacts:
|
||||||
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
||||||
|
when: always
|
||||||
|
expire_in: 1 day
|
||||||
|
paths:
|
||||||
|
- _install-w64
|
||||||
|
- build/windows/installer/lang/
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- _ccache/
|
||||||
|
needs: ["deps-win64-native"]
|
||||||
|
|
||||||
|
packaging-win64-native:
|
||||||
|
rules:
|
||||||
|
# On releases.
|
||||||
|
- if: '$CI_COMMIT_TAG != null'
|
||||||
|
# Custom builds though web GUI, API or schedules.
|
||||||
|
- if: '$GIMP_CI_WIN_INSTALLER != null'
|
||||||
|
stage: packaging
|
||||||
|
variables:
|
||||||
|
MSYSTEM: "MINGW64"
|
||||||
|
CHERE_INVOKING: "yes"
|
||||||
|
tags:
|
||||||
|
- win32-ps
|
||||||
|
script:
|
||||||
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/package-gimp-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/package-gimp-msys2.sh"
|
||||||
- cd _install-w64
|
- cd gimp-w64
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ../build/windows/gitlab-ci/split-debug-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ../build/windows/gitlab-ci/split-debug-msys2.sh"
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
||||||
|
@ -289,10 +316,7 @@ gimp-win64-native:
|
||||||
paths:
|
paths:
|
||||||
- gimp-w64
|
- gimp-w64
|
||||||
- build/windows/installer/lang/
|
- build/windows/installer/lang/
|
||||||
cache:
|
needs: ["gimp-win64-native"]
|
||||||
paths:
|
|
||||||
- _ccache/
|
|
||||||
needs: ["deps-win64-native"]
|
|
||||||
|
|
||||||
## WINDOWS 32-bit CI (native MSYS2) ##
|
## WINDOWS 32-bit CI (native MSYS2) ##
|
||||||
|
|
||||||
|
@ -336,8 +360,33 @@ gimp-win32-native:
|
||||||
script:
|
script:
|
||||||
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/build-gimp-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/build-gimp-msys2.sh"
|
||||||
|
artifacts:
|
||||||
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
||||||
|
when: always
|
||||||
|
expire_in: 1 day
|
||||||
|
paths:
|
||||||
|
- _install-w32
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- _ccache/
|
||||||
|
needs: ["deps-win32-native"]
|
||||||
|
|
||||||
|
packaging-win32-native:
|
||||||
|
rules:
|
||||||
|
# On releases.
|
||||||
|
- if: '$CI_COMMIT_TAG != null'
|
||||||
|
# Custom builds though web GUI, API or schedules.
|
||||||
|
- if: '$GIMP_CI_WIN_INSTALLER != null'
|
||||||
|
stage: packaging
|
||||||
|
variables:
|
||||||
|
MSYSTEM: "MINGW32"
|
||||||
|
CHERE_INVOKING: "yes"
|
||||||
|
tags:
|
||||||
|
- win32-ps
|
||||||
|
script:
|
||||||
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/package-gimp-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/package-gimp-msys2.sh"
|
||||||
- cd _install-w32
|
- cd gimp-w32
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ../build/windows/gitlab-ci/split-debug-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ../build/windows/gitlab-ci/split-debug-msys2.sh"
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
||||||
|
@ -345,10 +394,7 @@ gimp-win32-native:
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- gimp-w32
|
- gimp-w32
|
||||||
cache:
|
needs: ["gimp-win32-native"]
|
||||||
paths:
|
|
||||||
- _ccache/
|
|
||||||
needs: ["deps-win32-native"]
|
|
||||||
|
|
||||||
## WINDOWS 64-bit CI (cross-build crossroad) ##
|
## WINDOWS 64-bit CI (cross-build crossroad) ##
|
||||||
|
|
||||||
|
@ -528,8 +574,8 @@ win-installer-nightly:
|
||||||
- win32-ps
|
- win32-ps
|
||||||
stage: distribution
|
stage: distribution
|
||||||
dependencies:
|
dependencies:
|
||||||
- gimp-win64-native
|
- packaging-win64-native
|
||||||
- gimp-win32-native
|
- packaging-win32-native
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}"
|
||||||
when: always
|
when: always
|
||||||
|
@ -539,7 +585,7 @@ win-installer-nightly:
|
||||||
script:
|
script:
|
||||||
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu
|
||||||
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/installer-gimp-msys2.sh"
|
- C:\msys64\usr\bin\bash -lc "bash -x ./build/windows/gitlab-ci/installer-gimp-msys2.sh"
|
||||||
needs: ["gimp-win32-native", "gimp-win64-native"]
|
needs: ["packaging-win32-native", "packaging-win64-native"]
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
rules:
|
rules:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue