]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
automation: also specify xen binary as artifact on x86_64
authorWei Liu <wei.liu2@citrix.com>
Mon, 19 Nov 2018 15:03:58 +0000 (15:03 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 20 Nov 2018 18:15:39 +0000 (18:15 +0000)
... so that it can be passed on to test stage.

Note that xen is only extracted for x86_64 build since others may not
have that. Use a directory to account for possibly different file
names on Arm.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
.gitlab-ci.yml
automation/scripts/build

index 9f3504f15d27c59b5cce24f375b2e53dedb94a8f..a1672a9a916430a8960db76946e6819db8366ba2 100644 (file)
@@ -8,6 +8,7 @@ stages:
     - ./automation/scripts/build 2>&1 | tee build.log
   artifacts:
     paths:
+      - binaries/
       - xen-config
       - '*.log'
     when: always
index a1f9a5da56ef29ba0ab2efbf4466a9d4f34e07c7..e3672a3626ac22e892f31b9140a6a9892ba35fce 100755 (executable)
@@ -28,6 +28,10 @@ make -j$(nproc) dist
 
 # Extract artifacts to avoid getting rewritten by customised builds
 cp xen/.config xen-config
+mkdir binaries
+if [[ "${XEN_TARGET_ARCH}" == "x86_64" ]]; then
+    cp xen/xen binaries/xen
+fi
 
 # Build all the configs we care about
 case ${XEN_TARGET_ARCH} in