git: Add submodule mage.

results
Pierre-Antoine Rouby 2023-07-31 11:25:06 +02:00
parent a3f3fca6b6
commit 216bb3dd4c
4 changed files with 31 additions and 0 deletions

View File

@ -8,6 +8,27 @@ stages:
# BUILD #
#########
build-mage:
stage: build
tags:
- linux
rules:
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_DEPTH: 1
script:
- cd mage/src/
- mkdir -p build
- cd build
- cmake ..
- make
artifacts:
paths:
- mage/src/build/mage
- mage/src/build/mage_extraire
- mage/src/build/mailleurPF
build:
stage: build
tags:
@ -53,6 +74,8 @@ linux-package:
artifacts: true
- job: build
artifacts: true
- job: build-mage
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_TAG
artifacts:

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "mage"]
path = mage
url = https://gitlab.irstea.fr/jean-baptiste.faure/mage.git

1
mage Submodule

@ -0,0 +1 @@
Subproject commit 18aa9a7e0f8415a94a40fe647d329268c6932663

View File

@ -38,6 +38,10 @@ cp -r ../src/lang/*.qm dist/pamhyr/lang/
cp ../VERSION dist/pamhyr/
cp ../AUTHORS dist/pamhyr/
cp ../mage/src/build/mage dist/pamhyr/
cp ../mage/src/build/mage_extraire dist/pamhyr/
cp ../mage/src/build/mailleurPF dist/pamhyr/
echo " *** MAKE SRC PACKAGE"
OLD_PWD=$PWD