diff options
-rw-r--r-- | .gitlab-ci.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c99b53..14211fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ stages: - build - - deploy + - package # with :; prevent from run it on windows before_script: @@ -12,7 +12,8 @@ before_script: - ":; ${PMUPDATE} >logs/apt.log" - ":; ${PMINSTALL} ${PACKAGES} >>logs/apt.log" -image: debian:oldstable +# Intentionally old for maximum linking compatibility +image: debian:bullseye variables: PMUPDATE: "apt-get update" PMINSTALL: "apt-get install -y -qq" @@ -25,6 +26,8 @@ build_default: - autoreconf -i - ./configure - make -j$(nproc) + # this just copies mplint to /usr & is not passed to next stage) + #- make install variables: PACKAGES: g++ git make autoconf automake @@ -32,6 +35,15 @@ build_default: untracked: true expire_in: 3 days -#package_default: -# stage: deploy +package_default: + stage: package + script: + # To flatten the archive + - mv src/mplint mplint + - strip mplint + variables: + PACKAGES: binutils + artifacts: + paths: + - mplint |