gitlab-ci: Generate source tarballs
authorBen Gamari <ben@smart-cactus.org>
Tue, 19 Feb 2019 15:00:02 +0000 (10:00 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sat, 16 Mar 2019 23:17:46 +0000 (19:17 -0400)
.gitlab-ci.yml

index 878a2ff..9d9ebe2 100644 (file)
@@ -561,3 +561,21 @@ doc-tarball:
     - ls -lh
     - mv docs/*.tar.xz .
 
+source-tarball:
+  stage: packaging
+  tags:
+    - x86_64-linux
+  image: ghcci/x86_64-linux-deb9:0.2
+  only:
+    - tags
+  artifacts:
+    paths:
+      - ghc-*.tar.xz
+      - version
+  script:
+    - mk/get-win32-tarballs.sh download all
+    - ./boot
+    - ./configure
+    - make sdist
+    - mv sdistprep/*.xz  .
+    - make show VALUE=version > version