Skip to content

Commit 86bba80

Browse files
author
Alexandre Lissy
committed
Fix #3292: Linux debug builds
1 parent f20f939 commit 86bba80

27 files changed

+534
-25
lines changed

taskcluster/.shared.yml

+47
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ training:
1111
deepspeech:
1212
packages_xenial:
1313
apt: 'make build-essential gfortran git libblas-dev liblapack-dev libsox-dev libmagic-dev libgsm1-dev libltdl-dev libpng-dev python python-dev zlib1g-dev'
14+
packages_bionic:
15+
apt: 'apt-get -qq update && apt-get -qq -y install make build-essential gfortran git libblas-dev liblapack-dev libsox-dev libmagic-dev libgsm1-dev libltdl-dev libpng-dev python3 python3-dev python-is-python3 zlib1g-dev libbz2-dev liblzma-dev'
1416
kenlm:
1517
packages_xenial:
1618
apt: 'apt-get -qq update && apt-get -qq -y install cmake realpath build-essential libboost-dev wget software-properties-common zlib1g-dev libbz2-dev liblzma-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-test-dev'
@@ -21,12 +23,16 @@ kenlm:
2123
tensorflow:
2224
packages_xenial:
2325
apt: 'apt-get -qq update && apt-get -qq -y install realpath build-essential python-virtualenv python-dev python-pip libblas-dev liblapack-dev gfortran wget software-properties-common pixz zip zlib1g-dev unzip'
26+
packages_bionic:
27+
apt: 'apt-get -qq update && apt-get -qq -y install coreutils build-essential python3-virtualenv python3-dev python3-pip python-is-python3 libblas-dev liblapack-dev gfortran wget software-properties-common pixz zip zlib1g-dev unzip'
2428
packages_win:
2529
pacman: 'pacman --noconfirm -S patch unzip tar'
2630
msys64: 'ln -s $USERPROFILE/msys64 $TASKCLUSTER_TASK_DIR/msys64'
2731
java:
2832
packages_xenial:
2933
apt: 'apt-get -qq -y install curl software-properties-common wget unzip && add-apt-repository --yes ppa:openjdk-r/ppa && apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y --force-yes install openjdk-8-jdk && java -version && update-ca-certificates -f'
34+
packages_bionic:
35+
apt: 'apt-get -qq -y install curl software-properties-common wget unzip && add-apt-repository --yes ppa:openjdk-r/ppa && apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y --force-yes install openjdk-8-jdk && java -version && update-ca-certificates -f'
3036
electronjs:
3137
packages_xenial:
3238
apt: 'libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 xvfb'
@@ -204,6 +210,47 @@ system:
204210
ios_x86_64:
205211
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_x86_64/artifacts/public/home.tar.xz"
206212
namespace: "project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_x86_64"
213+
tensorflow_gcc9:
214+
linux_amd64_cpu:
215+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cpu_gcc9/artifacts/public/home.tar.xz"
216+
namespace: "project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cpu_gcc9"
217+
linux_amd64_cuda:
218+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cuda_gcc9/artifacts/public/home.tar.xz"
219+
namespace: "project.deepspeech.tensorflow.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cuda_gcc9"
220+
tensorflow_dbg:
221+
linux_amd64_cpu:
222+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cpu/artifacts/public/home.tar.xz"
223+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cpu"
224+
linux_amd64_cuda:
225+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cuda/artifacts/public/home.tar.xz"
226+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.cuda"
227+
linux_armv7:
228+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.arm/artifacts/public/home.tar.xz"
229+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.arm"
230+
linux_arm64:
231+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.arm64/artifacts/public/home.tar.xz"
232+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.arm64"
233+
darwin_amd64:
234+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.osx/artifacts/public/home.tar.xz"
235+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.osx"
236+
android_arm64:
237+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.android-arm64/artifacts/public/home.tar.xz"
238+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.android-arm64"
239+
android_armv7:
240+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.android-armv7/artifacts/public/home.tar.xz"
241+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.android-armv7"
242+
win_amd64_cpu:
243+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.win/artifacts/public/home.tar.xz"
244+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.win"
245+
win_amd64_cuda:
246+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.win-cuda/artifacts/public/home.tar.xz"
247+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.win-cuda"
248+
ios_arm64:
249+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_arm64/artifacts/public/home.tar.xz"
250+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_arm64"
251+
ios_x86_64:
252+
url: "https://community-tc.services.mozilla.com/api/index/v1/task/project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_x86_64/artifacts/public/home.tar.xz"
253+
namespace: "project.deepspeech.tensorflow_dbg.pip.r2.3.23ad988fcde60fb01f9533e95004bbc4877a9143.0.ios_x86_64"
207254
username: 'build-user'
208255
homedir:
209256
linux: '/home/build-user'

taskcluster/android-arm64-cpu-dbg.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_android-arm64-dbg"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.android-arm64-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-arm64-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.android-arm64-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_dbg.android_arm64.url}
13+
scripts:
14+
setup: "taskcluster/tc-true.sh"
15+
build: "taskcluster/android-build-dbg.sh arm64-v8a"
16+
package: "taskcluster/android-package.sh arm64-v8a"
17+
nc_asset_name: "native_client.arm64.cpu.android_dbg.tar.xz"
18+
workerType: "${docker.dsBuild}"
19+
metadata:
20+
name: "DeepSpeech Android ARM64 debug"
21+
description: "Building DeepSpeech for Android ARM64, debug version"

taskcluster/android-armv7-cpu-dbg.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_android-armv7-dbg"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.android-armv7-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-armv7-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.android-armv7-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_dbg.android_armv7.url}
13+
scripts:
14+
build: "taskcluster/android-build-dbg.sh armeabi-v7a"
15+
package: "taskcluster/android-package.sh armeabi-v7a"
16+
nc_asset_name: "native_client.armv7.cpu.android_dbg.tar.xz"
17+
workerType: "${docker.dsBuild}"
18+
metadata:
19+
name: "DeepSpeech Android ARMv7 debug"
20+
description: "Building DeepSpeech for Android ARMv7, debug version"

taskcluster/android-build-dbg.sh

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
set -xe
4+
5+
arm_flavor=$1
6+
7+
source $(dirname "$0")/tc-tests-utils.sh
8+
9+
source $(dirname "$0")/tf_tc-vars.sh
10+
11+
BAZEL_TARGETS="
12+
//native_client:libdeepspeech.so
13+
"
14+
15+
if [ "${arm_flavor}" = "armeabi-v7a" ]; then
16+
LOCAL_ANDROID_FLAGS="${BAZEL_ANDROID_ARM_FLAGS}"
17+
fi
18+
19+
if [ "${arm_flavor}" = "arm64-v8a" ]; then
20+
LOCAL_ANDROID_FLAGS="${BAZEL_ANDROID_ARM64_FLAGS}"
21+
fi
22+
23+
if [ "${arm_flavor}" = "x86_64" ]; then
24+
LOCAL_ANDROID_FLAGS="--config=android --cpu=x86_64 --action_env ANDROID_NDK_API_LEVEL=21 --cxxopt=-std=c++14 --copt=-D_GLIBCXX_USE_C99"
25+
fi
26+
27+
BAZEL_BUILD_FLAGS="--define=runtime=tflite ${LOCAL_ANDROID_FLAGS} ${BAZEL_EXTRA_FLAGS}"
28+
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"
29+
SYSTEM_TARGET=
30+
SYSTEM_RASPBIAN=
31+
32+
do_bazel_build "dbg"
33+
34+
export EXTRA_LOCAL_CFLAGS="-ggdb"
35+
do_deepspeech_ndk_build "${arm_flavor}"
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_android-arm64-dbg"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.android-x86_64-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-x86_64-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.android-x86_64-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_dbg.android_arm64.url}
13+
scripts:
14+
build: "taskcluster/android-build-dbg.sh x86_64"
15+
package: "taskcluster/android-package.sh x86_64"
16+
nc_asset_name: "native_client.x86_64.cpu.android_dbg.tar.xz"
17+
workerType: "${docker.dsBuild}"
18+
metadata:
19+
name: "DeepSpeech Android x86_64 debug"
20+
description: "Building DeepSpeech for Android x86_64, debug version"

taskcluster/arm64-build-dbg.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -xe
4+
5+
source $(dirname "$0")/tc-tests-utils.sh
6+
7+
source $(dirname "$0")/tf_tc-vars.sh
8+
9+
BAZEL_TARGETS="
10+
//native_client:libdeepspeech.so
11+
"
12+
13+
BAZEL_BUILD_FLAGS="${BAZEL_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS}"
14+
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"
15+
SYSTEM_TARGET=rpi3-armv8
16+
SYSTEM_RASPBIAN=/tmp/multistrap-armbian64-buster
17+
18+
maybe_install_xldd
19+
20+
do_bazel_build "dbg"
21+
22+
export EXTRA_LOCAL_CFLAGS="-ggdb"
23+
do_deepspeech_binary_build

taskcluster/cuda-build-dbg.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -xe
4+
5+
source $(dirname "$0")/tc-tests-utils.sh
6+
7+
source $(dirname "$0")/tf_tc-vars.sh
8+
9+
BAZEL_TARGETS="
10+
//native_client:libdeepspeech.so
11+
"
12+
13+
BAZEL_ENV_FLAGS="TF_NEED_CUDA=1 ${TF_CUDA_FLAGS}"
14+
BAZEL_BUILD_FLAGS="${BAZEL_CUDA_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BAZEL_OPT_FLAGS}"
15+
SYSTEM_TARGET=host
16+
EXTRA_LOCAL_CFLAGS=""
17+
EXTRA_LOCAL_LDFLAGS="-L${DS_ROOT_TASK}/DeepSpeech/CUDA/lib64/ -L${DS_ROOT_TASK}/DeepSpeech/CUDA/lib64/stubs/ -lcudart -lcuda"
18+
19+
do_bazel_build "dbg"
20+
21+
export EXTRA_LOCAL_CFLAGS="-ggdb"
22+
do_deepspeech_binary_build

taskcluster/generic_tc_caching-linux-opt-base.tyml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ payload:
1616
features:
1717
taskclusterProxy: true
1818

19+
env:
20+
DEBIAN_FRONTEND: "noninteractive"
21+
1922
command:
2023
- "/bin/bash"
2124
- "--login"

taskcluster/host-build-dbg.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -xe
4+
5+
runtime=$1
6+
7+
source $(dirname "$0")/tc-tests-utils.sh
8+
9+
source $(dirname "$0")/tf_tc-vars.sh
10+
11+
BAZEL_TARGETS="
12+
//native_client:libdeepspeech.so
13+
"
14+
15+
if [ "${runtime}" = "tflite" ]; then
16+
BAZEL_BUILD_TFLITE="--define=runtime=tflite"
17+
fi;
18+
19+
BAZEL_BUILD_FLAGS="${BAZEL_BUILD_TFLITE} ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS}"
20+
21+
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"
22+
SYSTEM_TARGET=host
23+
24+
do_bazel_build "dbg"
25+
26+
export EXTRA_LOCAL_CFLAGS="-ggdb"
27+
do_deepspeech_binary_build

taskcluster/host-build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ else
3232
fi
3333

3434
do_deepspeech_nodejs_build
35-

taskcluster/linux-amd64-cpu-dbg.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_linux-amd64-cpu_gcc9"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.cpu-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.cpu-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.cpu-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cpu.url}
13+
docker_image: "ubuntu:20.04"
14+
system_config:
15+
>
16+
${deepspeech.packages_bionic.apt}
17+
scripts:
18+
setup: "taskcluster/tc-true.sh"
19+
build: "taskcluster/host-build-dbg.sh"
20+
package: "taskcluster/package.sh"
21+
nc_asset_name: "native_client.amd64.cpu.linux_dbg.tar.xz"
22+
workerType: "${docker.tfBuild}"
23+
metadata:
24+
name: "DeepSpeech Linux AMD64 CPU Debug"
25+
description: "Building DeepSpeech for Linux/AMD64, CPU only, debug version"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_linux-amd64-gpu_gcc9"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.gpu-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.gpu-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.gpu-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cuda.url}
13+
docker_image: "ubuntu:20.04"
14+
system_config:
15+
>
16+
${deepspeech.packages_bionic.apt}
17+
maxRunTime: 14400
18+
scripts:
19+
setup: "taskcluster/tc-true.sh"
20+
build: "taskcluster/cuda-build-dbg.sh"
21+
package: "taskcluster/package.sh"
22+
nc_asset_name: "native_client.amd64.cuda.linux_dbg.tar.xz"
23+
workerType: "${docker.tfBuild}"
24+
metadata:
25+
name: "DeepSpeech Linux AMD64 CUDA debug"
26+
description: "Building DeepSpeech for Linux/AMD64, CUDA-enabled, debug version"
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_linux-amd64-cpu_gcc9"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.tflite-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.tflite-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.tflite-dbg.${event.head.sha}"
12+
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cpu.url}
13+
docker_image: "ubuntu:20.04"
14+
system_config:
15+
>
16+
${deepspeech.packages_bionic.apt}
17+
scripts:
18+
setup: "taskcluster/tc-true.sh"
19+
build: "taskcluster/host-build-dbg.sh tflite"
20+
package: "taskcluster/package.sh"
21+
nc_asset_name: "native_client.amd64.tflite.linux_dbg.tar.xz"
22+
workerType: "${docker.tfBuild}"
23+
metadata:
24+
name: "DeepSpeech Linux AMD64 TFLite debug"
25+
description: "Building DeepSpeech for Linux/AMD64, TFLite, debug version"

taskcluster/linux-arm64-cpu-dbg.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
build:
2+
template_file: linux-opt-base.tyml
3+
dependencies:
4+
- "swig-linux-amd64"
5+
- "node-gyp-cache"
6+
- "pyenv-linux-amd64"
7+
- "tf_linux-arm64-cpu-dbg"
8+
routes:
9+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.arm64-dbg"
10+
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.arm64-dbg"
11+
- "index.project.deepspeech.deepspeech.native_client.arm64-dbg.${event.head.sha}"
12+
## multistrap 2.2.0-ubuntu1 is broken in 14.04: https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787
13+
system_setup:
14+
>
15+
apt-get -qq -y install gdebi git pixz &&
16+
wget http://mirrors.kernel.org/ubuntu/pool/universe/m/multistrap/multistrap_2.2.0ubuntu2_all.deb -O /tmp/multistrap_2.2.0ubuntu2_all.deb &&
17+
echo "y" | gdebi /tmp/multistrap_2.2.0ubuntu2_all.deb
18+
system_config:
19+
>
20+
multistrap -d /tmp/multistrap-armbian64-buster/ -f ${system.homedir.linux}/DeepSpeech/ds/native_client/multistrap_armbian64_buster.conf
21+
tensorflow: ${system.tensorflow_dbg.linux_arm64.url}
22+
scripts:
23+
setup: "taskcluster/tc-true.sh"
24+
build: "taskcluster/arm64-build-dbg.sh"
25+
package: "taskcluster/package.sh"
26+
nc_asset_name: "native_client.arm64.cpu.linux_dbg.tar.xz"
27+
workerType: "${docker.dsBuild}"
28+
metadata:
29+
name: "DeepSpeech Linux ARM64 Cortex-A53 CPU debug"
30+
description: "Building DeepSpeech for Linux ARM64 Cortex-A53, CPU only, debug version"

taskcluster/linux-opt-base.tyml

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ then:
3030

3131
payload:
3232
maxRunTime: { $eval: to_int(build.maxRunTime) }
33-
image: "ubuntu:16.04"
33+
image: ${build.docker_image}
3434

3535
env:
3636
TENSORFLOW_BUILD_ARTIFACT: ${build.tensorflow}
37+
DEBIAN_FRONTEND: "noninteractive"
3738

3839
command:
3940
- "/bin/bash"
@@ -44,7 +45,7 @@ then:
4445
extraSystemConfig: { $eval: strip(str(build.system_config)) }
4546
in: >
4647
adduser --system --home ${system.homedir.linux} ${system.username} &&
47-
apt-get -qq update && apt-get -qq -y install ${deepspeech.packages_xenial.apt} pixz pkg-config realpath sudo unzip wget zip && ${extraSystemSetup} &&
48+
apt-get -qq update && apt-get -qq -y install ${deepspeech.packages_xenial.apt} pixz pkg-config coreutils sudo unzip wget zip && ${extraSystemSetup} &&
4849
cd ${system.homedir.linux}/ &&
4950
echo -e "#!/bin/bash\nset -xe\n env && id && (wget -O - $TENSORFLOW_BUILD_ARTIFACT | pixz -d | tar -C ${system.homedir.linux}/ -xf - ) && cd ~/DeepSpeech/ds && git remote set-url origin ${event.head.repo.url} && git fetch origin && git checkout --quiet ${event.head.sha} && git submodule --quiet sync tensorflow/ && git submodule --quiet update tensorflow/ && mkdir -p ${system.homedir.linux}/.cache/node-gyp/ && wget -O - ${system.node_gyp_cache.url} | tar -C ${system.homedir.linux}/.cache/node-gyp/ -xzf - && mkdir -p ${system.homedir.linux}/pyenv-root/ && wget -O - ${system.pyenv.linux.url} | tar -C ${system.homedir.linux}/pyenv-root/ -xzf - && if [ ! -z "${build.gradle_cache.url}" ]; then wget -O - ${build.gradle_cache.url} | tar -C ${system.homedir.linux}/ -xzf - ; fi && if [ ! -z "${build.android_cache.url}" ]; then wget -O - ${build.android_cache.url} | tar -C ${system.homedir.linux}/ -xzf - ; fi;" > /tmp/clone.sh && chmod +x /tmp/clone.sh &&
5051
sudo -H -u ${system.username} /bin/bash /tmp/clone.sh && ${extraSystemConfig} &&

0 commit comments

Comments
 (0)