Commit da49f34d authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

use IEM_CI_PKGLIBDIR for builiding multiple dek-files

parent 5f025929
......@@ -21,6 +21,7 @@ variables:
PDVERSION: 0.50-2
SRCDIR: .
IEM_CI_TMPDIR: .git-ci/_build/
IEM_CI_PKGBLIDIR: ""
#######################################################################
......@@ -37,9 +38,9 @@ variables:
- if make --version | egrep $(echo ${TARGETARCH:-$(${CC:-cc} -dumpmachine)} | sed -e 's|-.*-|-.*-|') && make -C "${SRCDIR}" check -n ${pd_extension:+extension=}${pd_extension} ${TARGETARCH:+PLATFORM=}${TARGETARCH} >/dev/null 2>&1 ; then make -C "${SRCDIR}" check ${pd_extension:+extension=}${pd_extension} ${TARGETARCH:+PLATFORM=}${TARGETARCH}; else echo "no 'check' target or cross-compiling...skipping"; fi
.script:make_install: &script_make_install
- rm -rf "${IEM_CI_TMPDIR}"
- make -C "${SRCDIR}" install ${pd_extension:+extension=}${pd_extension} ${TARGETARCH:+PLATFORM=}${TARGETARCH} DESTDIR="$(pwd)" pkglibdir="/${IEM_CI_TMPDIR}/"
- rm -rf "${CI_PROJECT_NAME}"
- mv "${IEM_CI_TMPDIR}"/* .
- make -C "${SRCDIR}" install ${pd_extension:+extension=}${pd_extension} ${TARGETARCH:+PLATFORM=}${TARGETARCH} DESTDIR="$(pwd)" pkglibdir="/${IEM_CI_TMPDIR}/${IEM_CI_PKGLIBDIR}"
- rm -rf "${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}"
- mv "${IEM_CI_TMPDIR}/${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}" .
#######################################################################
......@@ -57,7 +58,7 @@ variables:
artifacts: &snapshot_artifacts
name: ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${CI_JOB_NAME%_*}
paths:
- "${CI_PROJECT_NAME}"
- "${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}"
expire_in: 1 week
.build:release: &release
......@@ -66,7 +67,7 @@ variables:
artifacts: &release_artifacts
name: ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${CI_JOB_NAME%_*}
paths:
- "${CI_PROJECT_NAME}"
- "${IEM_CI_PKGLIBDIR:-${CI_PROJECT_NAME}}"
.build:linux: &build_linux
extends: .build:script
......@@ -222,7 +223,8 @@ variables:
- git archive --format=tar --prefix=tmp/${CI_PROJECT_NAME}/ HEAD | tar xf -
- deken package --version="${CI_COMMIT_TAG#v}" "tmp/${CI_PROJECT_NAME}"
# create binary package
- deken package --version="${CI_COMMIT_TAG#v}" "${CI_PROJECT_NAME}"
- test -z "${IEM_CI_PKGBLIDIR}" || deken package --version="${CI_COMMIT_TAG#v}" "${CI_PROJECT_NAME}"
- test -z "${IEM_CI_PKGBLIDIR}" && find "${IEM_CI_PKGBLIDIR}" -maxdepth 2 -type d -name "${CI_PROJECT_NAME}" -exec deken package --version="${CI_COMMIT_TAG#v}" {} +
# upload deken packages
- test -z "${CI_COMMIT_TAG}" || test -z "${DEKEN_USERNAME}" || test -z "${DEKEN_PASSWORD}" || deken upload --no-source-error ./*.dek
artifacts:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment