From e10652db11ed96f351fc6b849405219b05e6c4be Mon Sep 17 00:00:00 2001
From: nrbffs <38812627+nrbffs@users.noreply.github.com>
Date: Sat, 13 Apr 2019 22:23:16 -0400
Subject: [PATCH] add own build stage for each target

---
 .gitlab-ci.yml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 63 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index da96f91a9..29ebcbadc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,11 +6,72 @@ variables:
 stages:
   - build
 
-build:
+.target: &target
   stage: build
   script:
-    - ./buildall.sh
+    - make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR"
+    - make -C gluon GLUON_SITEDIR="$CI_PROJECT_DIR" GLUON_TARGET="$GLUON_TARGET" V=1
   artifacts: 
     paths:
       - gluon/output/
     expire_in: 1 day
+ 
+target:ar71xx-generic:
+  <<: *target
+  variables:
+    GLUON_TARGET: ar71xx-generic
+ 
+target:ar71xx-nand:
+  <<: *target
+  variables:
+    GLUON_TARGET: ar71xx-nand
+ 
+target:ar71xx-tiny:
+  <<: *target
+  variables:
+    GLUON_TARGET: ar71xx-tiny
+ 
+target:brcm2708-bcm2708:
+  <<: *target
+  variables:
+    GLUON_TARGET: brcm2708-bcm2708
+ 
+target:brcm2708-bcm2709:
+  <<: *target
+  variables:
+    GLUON_TARGET: brcm2708-bcm2709
+ 
+target:mpc85xx-generic:
+  <<: *target
+  variables:
+    GLUON_TARGET: mpc85xx-generic
+ 
+target:ipq40xx:
+  <<: *target
+  variables:
+    GLUON_TARGET: ipq40xx
+ 
+target:ramips-mt7621:
+  <<: *target
+  variables:
+    GLUON_TARGET: ramips-mt7621
+ 
+target:ramips-mt76x8:
+  <<: *target
+  variables:
+    GLUON_TARGET: ramips-mt76x8
+ 
+target:x86-generic:
+  <<: *target
+  variables:
+    GLUON_TARGET: x86-generic
+ 
+target:x86-geode:
+  <<: *target
+  variables:
+    GLUON_TARGET: x86-geode
+ 
+target:x86-64:
+  <<: *target
+  variables:
+    GLUON_TARGET: x86-64
-- 
GitLab