From b15688f34734754cbc53498f9dcd61bd1a0be89b Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 27 Feb 2023 22:22:51 +0100 Subject: Added packaging stage --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c9cdb6..64830fd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,3 +37,24 @@ test-windows: artifacts: reports: junit: build-windows/windows.xml + +package-linux: + stage: package + needs: ["test-linux"] + script: + - cmake --install build-linux/ --prefix pkg + - cd pkg/ && tar cJf ../kurator-x86_64-linux.tar.xz * + artifacts: + paths: + - kurator-x86_64-linux.tar.xz + +package-windows: + stage: package + needs: ["test-windows"] + script: + - cmake --install build-windows/ --prefix pkg + - cp /usr/x86_64-w64-mingw32/bin/{libssp-0,libgcc_s_seh-1,libraylib,libstdc++-6,libwinpthread-1}.dll pkg/ + - cd pkg/ && tar cJf ../kurator-x86_64-windows.tar.xz * + artifacts: + paths: + - kurator-x86_64-windows.tar.xz -- cgit v1.1