Browse Source

Update

tags/v0.0.60
Peter Vivell 6 years ago
parent
commit
a1a0d4f50d
1 changed files with 19 additions and 8 deletions
  1. 19
    8
      drone.yml

+ 19
- 8
drone.yml View File

@@ -41,7 +41,7 @@ steps:
41 41
     build_args: # custom args for docker build, e.g. additional BUILD_DEPS etc.
42 42
       - DEB_RELEASE=stretch
43 43
       - BUILD_DEPS=libhidapi-dev libssl-dev
44
-      - BUILD_ARCH=i386 amd64 armhf armel # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
44
+      - BUILD_ARCH=armhf # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
45 45
 
46 46
 - name: build
47 47
   image: reg.unino.de/develop/debian-${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}:latest
@@ -58,6 +58,7 @@ steps:
58 58
     # DEB_BUILD_ARCH DEB_HOST_ARCH TARGET=armhf
59 59
     - PKG_NAME="${DRONE_REPO_NAME}" &&
60 60
       PKG_VERSION="$(git describe --always)" &&
61
+      PKG_BUILDHOST_ARCH="amd64" &&
61 62
       PKG_SRC_ROOT="$(pwd)" &&
62 63
       PKG_RELEASE_DIR="$${PKG_SRC_ROOT}/release" &&
63 64
       PKG_DIST_DIR="dist" &&
@@ -68,18 +69,28 @@ steps:
68 69
         --exclude="$${PKG_DEB_ARCHIVE}" 
69 70
         --transform "s/\./$${PKG_DEB_ARCHIVE_ROOT}/" 
70 71
         -cJf "$${PKG_RELEASE_DIR}/$${PKG_DEB_ARCHIVE}" . &&
71
-      PKG_BUILDHOST_ARCH="amd64" &&
72
-      for PKG_ARCH in $${BUILD_ARCH} ; do cd "$${PKG_SRC_ROOT}" && echo "Building for $${PKG_ARCH}" &&
72
+      for PKG_ARCH in $${BUILD_ARCH} ; do cd "$${PKG_SRC_ROOT}" && 
73
+        echo " ░▒▓█ BUILDING FOR $${PKG_ARCH} █▓▒░ " &&
73 74
         PKG_RELEASE_ARCHIVE="$${PKG_NAME}_$${PKG_VERSION}_$${PKG_ARCH}.tar.xz" &&
74 75
         PKG_RELEASE_ARCHIVE_ROOT="$${PKG_NAME}-$${PKG_VERSION}" &&
75 76
         PKG_BUILD_DIR="$${PKG_SRC_ROOT}/build/$${PKG_ARCH}/$${PKG_ARCHIVE_ROOT}" &&
76 77
         mkdir -p "$${PKG_BUILD_DIR}" &&
77 78
         tar -xf "$${PKG_RELEASE_DIR}/$${PKG_DEB_ARCHIVE}" -C "$${PKG_BUILD_DIR}" --strip 1 &&
78 79
         cd "$${PKG_BUILD_DIR}" &&
79
-        case $${PKG_ARCH} in 
80
-          amd64) PREFIX="" ;;
81
-          armhf) PREFIX="arm-linux-gnueabihf-" ;;
80
+        case "$${PKG_ARCH}" in 
81
+          amd64)    PREFIX="x86_64-linux-gnu-"        ;;
82
+          arm64)    PREFIX="aarch64-linux-gnu-"       ;;
83
+          armel)    PREFIX="arm-linux-gnueabi-"       ;;
84
+          armhf)    PREFIX="arm-linux-gnueabihf-"     ;;
85
+          i386)     PREFIX="i686-linux-gnu-"          ;;
86
+          mips)     PREFIX="mips-linux-gnu-"          ;;
87
+          mips64el) PREFIX="mips64el-linux-gnuabi64-" ;;
88
+          mipsel)   PREFIX="mipsel-linux-gnu-"        ;;
89
+          powerpc)  PREFIX="powerpc-linux-gnu-"       ;;
90
+          ppc64el)  PREFIX="powerpc64le-linux-gnu-"   ;;
91
+          s390x)    PREFIX="s390x-linux-gnu-"         ;;
82 92
         esac &&
93
+        if test "$${PKG_ARCH}" == "$${PKG_BUILDHOST_ARCH}" ; then PREFIX=""
83 94
         export CC="$${PREFIX}gcc" &&
84 95
         export LD="$${PREFIX}ld" &&
85 96
         export STRIP="$${PREFIX}strip" &&
@@ -93,6 +104,7 @@ steps:
93 104
       done &&
94 105
       ls -la "$${PKG_RELEASE_DIR}" &&
95 106
       find "$${PKG_RELEASE_DIR}" -type f -exec md5sum '{}' \;
107
+    - exit 0 ; ░▒▓█ BUILD END █▓▒░
96 108
 
97 109
 
98 110
 #        tar --exclude='./.*'
@@ -127,8 +139,7 @@ steps:
127 139
 #      DEB_BUILD_OPTIONS=nocheck 
128 140
 #      dpkg-buildpackage -us -uc -a $ARCH ;
129 141
 #      done
130
-
131
-    - exit 0 ; ░▒▓█ BUILD END █▓▒░
142
+#    - exit 0 ; ░▒▓█ BUILD END █▓▒░
132 143
 
133 144
 
134 145
 - name: sign

Loading…
Cancel
Save