diff options
Diffstat (limited to 'ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml')
-rw-r--r-- | ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml b/ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml new file mode 100644 index 0000000000..8a21ee7c80 --- /dev/null +++ b/ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml @@ -0,0 +1,36 @@ +--- +- name: Build TensorFlow in Dual ABI container + hosts: localhost + vars_files: + ../vars/vars.yml + + tasks: + - name: Cleanup after previous build + ansible.builtin.file: + path: "{{ build_dir }}/{{ item }}" + state: absent + loop: + - disk-cache + - wheels + - ml_wheels + - tensorflow + + - name: Create cache dirs + ansible.builtin.file: + path: "{{ build_dir }}/{{ item }}" + state: directory + mode: 0777 + loop: + - disk-cache + - bazel-cache + - wheels + - ml_wheels + + - name: Go through each TensorFlow version + ansible.builtin.include_role: + name: tensorflow + tasks_from: loop.yml + loop: "{{ versions | dict2items }}" + loop_control: + loop_var: tf_ver + when: tf_ver.key in to_be_built |