aboutsummaryrefslogtreecommitdiff
path: root/ldcg-python-manylinux-tensorflow/ansible/playbooks/build-tf-dual-abi.yml
blob: 8a21ee7c80defc6e3e75fdd901210f385981e332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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