build:
  template_file: linux-opt-base.tyml
  dependencies:
    - "swig-linux-amd64"
    - "node-gyp-cache"
    - "pyenv-linux-amd64"
    - "tf_linux-arm64-cpu-dbg"
  routes:
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.arm64-dbg"
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.arm64-dbg"
    - "index.project.deepspeech.deepspeech.native_client.arm64-dbg.${event.head.sha}"
  ## multistrap 2.2.0-ubuntu1 is broken in 14.04: https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787
  system_setup:
    >
      apt-get -qq -y install gdebi git pixz &&
      wget http://mirrors.kernel.org/ubuntu/pool/universe/m/multistrap/multistrap_2.2.0ubuntu2_all.deb -O /tmp/multistrap_2.2.0ubuntu2_all.deb &&
      echo "y" | gdebi /tmp/multistrap_2.2.0ubuntu2_all.deb
  system_config:
    >
      multistrap -d /tmp/multistrap-armbian64-buster/ -f ${system.homedir.linux}/DeepSpeech/ds/native_client/multistrap_armbian64_buster.conf
  tensorflow: ${system.tensorflow_dbg.linux_arm64.url}
  scripts:
    setup: "taskcluster/tc-true.sh"
    build: "taskcluster/arm64-build-dbg.sh"
    package: "taskcluster/package.sh"
  nc_asset_name: "native_client.arm64.cpu.linux_dbg.tar.xz"
  workerType: "${docker.dsBuild}"
  metadata:
    name: "DeepSpeech Linux ARM64 Cortex-A53 CPU debug"
    description: "Building DeepSpeech for Linux ARM64 Cortex-A53, CPU only, debug version"
