aboutsummaryrefslogtreecommitdiff
path: root/ldcg-python-manylinux-tensorflow/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ldcg-python-manylinux-tensorflow/build.sh')
-rw-r--r--ldcg-python-manylinux-tensorflow/build.sh56
1 files changed, 44 insertions, 12 deletions
diff --git a/ldcg-python-manylinux-tensorflow/build.sh b/ldcg-python-manylinux-tensorflow/build.sh
index f504459e8d..4e88a086d6 100644
--- a/ldcg-python-manylinux-tensorflow/build.sh
+++ b/ldcg-python-manylinux-tensorflow/build.sh
@@ -4,26 +4,58 @@ set -xe
cd $WORKSPACE
-rm -rf *.sh configs
+rm -rf *.sh configs wheels cache_upload
-git clone --depth 1 https://git.linaro.org/ci/job/configs.git
+mkdir wheels cache_upload
-cp configs/ldcg-python-manylinux-tensorflow/build-manylinux2014-wheels.sh .
+git clone --depth 1 https://git.linaro.org/ci/job/configs.git
-# 00:01:17.010 /usr/local/bin/manylinux-entrypoint: line 8: /tmp/wheels/build-manylinux2014-wheels.sh: Permission denied
-chmod 755 build-manylinux2014-wheels.sh
+cd configs; git log --pretty=oneline -1; cd ..
-if [ "$build115" = "true" ]; then
- echo ' - "1.15"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+if [ "$build212" = "true" ]; then
+ echo ' - "2.12"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+if [ "$build213" = "true" ]; then
+ echo ' - "2.13"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+if [ "$build214" = "true" ]; then
+ echo ' - "2.14"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
fi
-if [ "$build24" = "true" ]; then
- echo ' - "2.4"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+if [ "$build215" = "true" ]; then
+ echo ' - "2.15"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
fi
-if [ "$build25" = "true" ]; then
- echo ' - "2.5"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+if [ "$build216" = "true" ]; then
+ echo ' - "2.16"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
fi
if [ "$buildgit" = "true" ]; then
echo ' - "git"' >> configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
fi
+if [ "$buildonednn" = "true" ]; then
+ sed -i -e '/onednn_build/s/false/true/' configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+if [ "$buildonednnopt" = "true" ]; then
+ sed -i -e '/onednn_enable_opt/s/false/true/' -e '/extra_test_options/s/0/1/' configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+if [ "$prebuild" = "true" ]; then
+ sed -i -e '/prebuild_release/s/false/true/' configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+ sed -i -e "/prebuild_hash/s/\"\"/\"${prebuild_hash}\"/" configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+if [ "$useclang" = "true" ]; then
+ sed -i -e '/clang_build/s/false/true/' configs/ldcg-python-manylinux-tensorflow/ansible/vars/vars.yml
+fi
+
+ansible-galaxy collection install community.docker
+
+cd configs/ldcg-python-manylinux-tensorflow/ansible/
+sed -i -e"s+/tmp/workspace+${WORKSPACE}+g" vars/vars.yml
+
+ansible-playbook playbooks/build-tf-dual-abi.yml
+
+# To be in sync with upstream we keep wheels outside of wheels/ while we
+# loop on Python versions. Now let move them back so publishing script
+# would not require changes.
+cd $WORKSPACE
+mv ml_wheels/tensorflow_aarch64-*.whl wheels/
-docker run -u root -v $PWD:/tmp/workspace quay.io/pypa/manylinux2014_aarch64 /tmp/workspace/build-manylinux2014-wheels.sh
+# drop files we do not want/need to publish
+rm wheels/audit.txt wheels/profile.json.gz