diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4c97d4..af296f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,6 +37,13 @@ formatting: build_module: stage: build script: + - export SINQMOTOR_VERSION="$(grep 'sinqMotor_VERSION=' Makefile | cut -d= -f2)" + - git clone --depth 1 --branch "${SINQMOTOR_VERSION}" https://gitlab-ci-token:${CI_JOB_TOKEN}@git.psi.ch/sinq-epics-modules/sinqmotor.git + - pushd sinqmotor + - sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile + - echo "LIBVERSION=${SINQMOTOR_VERSION}" >> Makefile + - make install + - popd - sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile - echo "LIBVERSION=${CI_COMMIT_TAG:-0.0.1}" >> Makefile - make install