From c85f95f781ee8c007502bcfc4ab2e24fc3e3e24c Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Tue, 9 Jun 2020 19:58:04 +0200 Subject: [PATCH] Add DeepSpeech iOS tasks --- taskcluster/ios-arm64-tflite-opt.yml | 21 +++++++++++++++++++++ taskcluster/ios-build.sh | 17 +++++++++++++++++ taskcluster/ios-x86_64-tflite-opt.yml | 21 +++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 taskcluster/ios-arm64-tflite-opt.yml create mode 100755 taskcluster/ios-build.sh create mode 100644 taskcluster/ios-x86_64-tflite-opt.yml diff --git a/taskcluster/ios-arm64-tflite-opt.yml b/taskcluster/ios-arm64-tflite-opt.yml new file mode 100644 index 00000000..dab0d24b --- /dev/null +++ b/taskcluster/ios-arm64-tflite-opt.yml @@ -0,0 +1,21 @@ +build: + template_file: darwin-opt-base.tyml + dependencies: + - "swig-darwin-amd64" + - "node-gyp-cache" + - "homebrew_builds-darwin-amd64" + - "pyenv-darwin-amd64" + - "tf_ios-arm64-opt" + routes: + - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.ios_arm64-tflite" + - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.ios_arm64-tflite" + - "index.project.deepspeech.deepspeech.native_client.ios_arm64-tflite.${event.head.sha}" + tensorflow: ${system.tensorflow.ios_arm64.url} + scripts: + build: "taskcluster/ios-build.sh" + package: "taskcluster/package.sh" + nc_asset_name: "native_client.arm64.tflite.ios.tar.xz" + maxRunTime: 14400 + metadata: + name: "DeepSpeech iOS ARM64 TFLite" + description: "Building DeepSpeech for iOS ARM64, TFLite, optimized version" diff --git a/taskcluster/ios-build.sh b/taskcluster/ios-build.sh new file mode 100755 index 00000000..1b913130 --- /dev/null +++ b/taskcluster/ios-build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -xe + +source $(dirname "$0")/tc-tests-utils.sh + +source ${DS_ROOT_TASK}/DeepSpeech/tf/tc-vars.sh + +BAZEL_TARGETS=" +//native_client:libdeepspeech.so +" + +BAZEL_BUILD_FLAGS="--config=ios_arm64 --define=runtime=tflite ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS}" + +BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" + +do_bazel_build diff --git a/taskcluster/ios-x86_64-tflite-opt.yml b/taskcluster/ios-x86_64-tflite-opt.yml new file mode 100644 index 00000000..144f0bd5 --- /dev/null +++ b/taskcluster/ios-x86_64-tflite-opt.yml @@ -0,0 +1,21 @@ +build: + template_file: darwin-opt-base.tyml + dependencies: + - "swig-darwin-amd64" + - "node-gyp-cache" + - "homebrew_builds-darwin-amd64" + - "pyenv-darwin-amd64" + - "tf_ios-x86_64-opt" + routes: + - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.ios_x86_64-tflite" + - "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.ios_x86_64-tflite" + - "index.project.deepspeech.deepspeech.native_client.ios_x86_64-tflite.${event.head.sha}" + tensorflow: ${system.tensorflow.ios_x86_64.url} + scripts: + build: "taskcluster/ios-build.sh" + package: "taskcluster/package.sh" + nc_asset_name: "native_client.x86_64.tflite.ios.tar.xz" + maxRunTime: 14400 + metadata: + name: "DeepSpeech iOS x86_64 TFLite" + description: "Building DeepSpeech for iOS x86_64, TFLite, optimized version"