aboutsummaryrefslogblamecommitdiff
path: root/scripts/deploy/app/build.yml
blob: af6774ebc535e91decedfb970db513b0bb9b132a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                        
                                                                                                                          













                                                                    
---
# available vars:
# last_state -- the content of state.json
# nid -- host_idx (with 0 as default)
# ngroup -- the group of nodes involved in the build
# testbed -- the remote path of run_id

- name: build hotstuff example binaries
  block:
    - file:
        path: "{{ (hs_repo_dir, 'build') | path_join }}"
        state: absent
    - command: cmake -DCMAKE_BUID_TYPE=Release -DHOTSTUFF_PROTO_LOG=OFF "-DCMAKE_CXX_FLAGS='{{ hs_flags | default('') }}'"
      args:
        chdir: "{{ hs_repo_dir }}"
      environment:
        PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/snap/bin
    - command: make clean
      args:
        chdir: "{{ hs_repo_dir }}"
      environment:
        PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/snap/bin
    - command: make -j4
      args:
        chdir: "{{ hs_repo_dir }}"
      environment:
        PATH: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/snap/bin