[gnome-build-meta/valentindavid/gnome-os-ostree: 14/14] Build GNOME OS OSTree in CI



commit 21fe4fb92e2b1600de8ed1fa8d44a8f973cdd6f9
Author: Valentin David <valentin david codethink co uk>
Date:   Fri Dec 13 11:39:14 2019 +0100

    Build GNOME OS OSTree in CI

 .gitlab-ci.yml | 20 +++-----------------
 1 file changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 443ddfad..0ecdfc2d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,22 +85,8 @@ default:
     if [ "${ARCH}" == "x86_64" ]; then
         ${BST} build openh264-extension.bst:flatpak-repo.bst
 
-        # FIXME: reenable the vm build
-        # https://gitlab.gnome.org/GNOME/gnome-build-meta/merge_requests/470#note_666498
-        #
-        # Don't try to push the resulting artifacts, the huge image doesnt
-        # work well with the artifact cache right now.
-        #
-        # ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build 
vm/desktop-vm-image-x86_64.bst
-
-        # Checkout the image for the gitlab artifact.
-        #
-        # Accept using hardlinks here as the upload will not
-        # corrupt the local artifact cache.
-        #
-        # ${BST} checkout --hardlinks vm/desktop-vm-image-x86_64.bst image
-        # qemu-img convert -f raw -O qcow2 image/sda.img image/sda.qcow2
-        # rm image/sda.img
+        ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst
+        ${BST_NO_PUSH} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
     fi
 
   # Store all the downloaded git repos and tarballs in the cache.
@@ -201,7 +187,7 @@ track:
   stage: track
   script:
   - 'sed -i "s/track-tags: False/track-tags: ${BST_TRACK_TAGS}/" project.conf'
-  - ${BST} track --deps all core.bst flatpak-runtimes.bst
+  - ${BST} track --deps all core.bst flatpak-runtimes.bst vm/image.bst
   retry: 2
   # only run on branches targeting master
   only:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]