diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-27 00:36:52 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-04-30 16:24:41 +0200 |
commit | 45b2092072526348551dd6856bde3129ed5d9a4a (patch) | |
tree | 45c322cca9a3239404eac8818d3f8dc9d7228b41 | |
parent | 83c81c97866d783d50c41d89f8651caf88fe1115 (diff) | |
download | mplint-45b2092072526348551dd6856bde3129ed5d9a4a.tar.gz mplint-45b2092072526348551dd6856bde3129ed5d9a4a.tar.bz2 mplint-45b2092072526348551dd6856bde3129ed5d9a4a.tar.xz mplint-45b2092072526348551dd6856bde3129ed5d9a4a.zip |
Add job to package only the (stripped) mplint exe
flatten artifacts.zip
-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 |