Browse Source

ci: support Travis CI's ppc64le builds

* .travis.yml (matrix): Add ppc64le builds.
* ci/install-dependencies.sh: Do not attempt to install multilib
packages on ppc64le.
Dmitry V. Levin 1 month ago
parent
commit
9a7c720373
2 changed files with 19 additions and 2 deletions
  1. 11
    0
      .travis.yml
  2. 8
    2
      ci/install-dependencies.sh

+ 11
- 0
.travis.yml View File

@@ -128,3 +128,14 @@ matrix:
128 128
         - SLEEP_A_BIT="sleep 0.5"
129 129
         - STACKTRACE=no
130 130
         - TIMEOUT_DURATION=1500
131
+    - arch: ppc64le
132
+      compiler: gcc
133
+      env:
134
+        - TARGET=ppc64le
135
+        - STACKTRACE=libdw
136
+    - arch: ppc64le
137
+      compiler: gcc-9
138
+      env:
139
+        - TARGET=ppc64le
140
+        - STACKTRACE=no
141
+        - KHEADERS=torvalds/linux

+ 8
- 2
ci/install-dependencies.sh View File

@@ -59,9 +59,12 @@ case "$TARGET" in
59 59
 	aarch64)
60 60
 		packages="$common_packages gcc-multilib-arm-linux-gnueabihf libc6-dev-armhf-cross linux-libc-dev-armhf-cross"
61 61
 		;;
62
-	*)
62
+	x86_64|x32|x86|s390x)
63 63
 		packages="$common_packages gcc-multilib"
64 64
 		;;
65
+	*)
66
+		packages="$common_packages gcc"
67
+		;;
65 68
 esac
66 69
 
67 70
 case "$CC" in
@@ -72,8 +75,11 @@ case "$CC" in
72 75
 			aarch64)
73 76
 				apt_get_install $packages "$CC"-multilib-arm-linux-gnueabihf "$CC"
74 77
 				;;
78
+			x86_64|x32|x86|s390x)
79
+				apt_get_install $packages "$CC"-multilib "$CC"
80
+				;;
75 81
 			*)
76
-				apt_get_install $packages "$CC"-multilib
82
+				apt_get_install $packages "$CC"
77 83
 				;;
78 84
 		esac
79 85
 		;;

Loading…
Cancel
Save