build:
  template_file: linux-opt-base.tyml
  dependencies:
    - "swig-linux-amd64"
    - "node-gyp-cache"
    - "pyenv-linux-amd64"
    - "tf_linux-amd64-cpu-opt"
  routes:
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.cpu"
    - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.cpu"
    - "index.project.deepspeech.deepspeech.native_client.cpu.${event.head.sha}"
  system_setup:
    >
      ${nodejs.packages_xenial.prep_12} && ${nodejs.packages_xenial.apt_pinning}
      && apt-get -qq update && apt-get -qq -y install nodejs python-yaml
  tensorflow: ${system.tensorflow.linux_amd64_cpu.url}
  scripts:
    setup: "taskcluster/tc-true.sh"
    build: "taskcluster/host-build.sh"
    package: "taskcluster/package.sh"
  nc_asset_name: "native_client.amd64.cpu.linux.tar.xz"
  workerType: "${docker.dsBuild}"
  metadata:
    name: "DeepSpeech Linux AMD64 CPU"
    description: "Building DeepSpeech for Linux/AMD64, CPU only, optimized version"
