mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 21:18:01 +02:00
CI: building Qt5Pas bindings moved to a separate stage/job with cached results
This commit is contained in:
parent
024e28702a
commit
bcc142a91a
@ -2,12 +2,14 @@ variables:
|
||||
FPC_OLDSTABLE_VER: 3.2.0
|
||||
FPC_STABLE_VER: 3.2.2
|
||||
IMAGE_TAG: $CI_REGISTRY_IMAGE/debian11-x86-64:latest
|
||||
QT5PAS_SRC: lcl/interfaces/qt5/cbindings
|
||||
|
||||
default:
|
||||
image: $IMAGE_TAG
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- prepenv
|
||||
- prepcaches
|
||||
- build
|
||||
|
||||
update-build-env: # This job updates building environment image. Run it if FPC version constants and/or Dockerfile.buildenv were changed.
|
||||
@ -21,6 +23,23 @@ update-build-env: # This job updates building environment image. Run it if FPC v
|
||||
- docker push $IMAGE_TAG
|
||||
when: manual
|
||||
|
||||
update-qt5pas-bindings: # build and cache Qt5 Pascal bindings
|
||||
stage: prepcaches
|
||||
script:
|
||||
- cd $QT5PAS_SRC
|
||||
- qmake -query
|
||||
- qmake
|
||||
- make
|
||||
cache:
|
||||
key: qt5pas-cache-$CI_COMMIT_REF_SLUG
|
||||
policy: push
|
||||
untracked: true
|
||||
paths:
|
||||
- $QT5PAS_SRC/
|
||||
rules:
|
||||
- changes:
|
||||
- $QT5PAS_SRC/**/*
|
||||
|
||||
|
||||
x86_64-gtk2-oldstable:
|
||||
stage: build
|
||||
@ -37,25 +56,29 @@ x86_64-gtk2-stable:
|
||||
x86_64-qt5-oldstable:
|
||||
stage: build
|
||||
script:
|
||||
- cd lcl/interfaces/qt5/cbindings # build and install Qt5 Pascal bindings
|
||||
- qmake -query
|
||||
- qmake
|
||||
- make
|
||||
- cd $QT5PAS_SRC # install Qt5 Pascal bindings
|
||||
- make install
|
||||
- cd ../../../..
|
||||
- cd $CI_PROJECT_DIR
|
||||
- make bigide FPC=/usr/lib/fpc/$FPC_OLDSTABLE_VER/ppcx64 CPU_TARGET=x86_64 LCL_PLATFORM=qt5
|
||||
cache:
|
||||
key: qt5pas-cache-$CI_COMMIT_REF_SLUG
|
||||
policy: pull
|
||||
paths:
|
||||
- $QT5PAS_SRC/
|
||||
when: manual
|
||||
|
||||
x86_64-qt5-stable:
|
||||
stage: build
|
||||
script:
|
||||
- cd lcl/interfaces/qt5/cbindings # build and install Qt5 Pascal bindings
|
||||
- qmake -query
|
||||
- qmake
|
||||
- make
|
||||
- cd $QT5PAS_SRC # install Qt5 Pascal bindings
|
||||
- make install
|
||||
- cd ../../../..
|
||||
- cd $CI_PROJECT_DIR
|
||||
- make bigide FPC=/usr/lib/fpc/$FPC_STABLE_VER/ppcx64 CPU_TARGET=x86_64 LCL_PLATFORM=qt5
|
||||
cache:
|
||||
key: qt5pas-cache-$CI_COMMIT_REF_SLUG
|
||||
policy: pull
|
||||
paths:
|
||||
- $QT5PAS_SRC/
|
||||
when: manual
|
||||
|
||||
i386-win32-oldstable:
|
||||
|
Loading…
Reference in New Issue
Block a user