1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-11-29 16:27:53 +00:00
bachelor-project/ansible/roles/mp_spdz/tasks/main.yml

54 lines
1.1 KiB
YAML
Raw Normal View History

# vim: ft=yaml.ansible
---
- name: Install dependencies via apt
ansible.builtin.apt:
name: "{{ pkgs }}"
state: present
become_user: root
vars:
pkgs:
2023-04-18 22:56:27 +00:00
- acl
- automake
- build-essential
- clang
- cmake
- git
2023-05-14 20:07:22 +00:00
- libgmp-dev
- libntl-dev
- libsodium-dev
- libssl-dev
- libtool
- m4
- python3
- texinfo
- yasm
- name: Clone MP-SPDZ
ansible.builtin.git:
repo: https://github.com/data61/MP-SPDZ
2023-05-14 20:07:22 +00:00
dest: "{{ mp_spdz.dir }}"
version: "{{ mp_spdz.version }}"
clone: true
2023-04-19 16:46:24 +00:00
update: false
recursive: true
2023-04-19 16:46:24 +00:00
single_branch: true
depth: 1
2023-04-19 16:46:24 +00:00
- name: Create CONFIG.mine
ansible.builtin.copy:
2023-05-14 20:07:22 +00:00
dest: "{{ mp_spdz.dir }}/CONFIG.mine"
2023-04-19 16:46:24 +00:00
owner: "{{ username }}"
mode: u=rw,g=r,o=r
content: |
ARCH = -mtune=native -msse4.1 -msse4.2 -maes -mpclmul -mavx -mavx2 -mbmi2 -madx
- name: Build MP-SPDZ
community.general.make:
2023-05-14 20:07:22 +00:00
chdir: "{{ mp_spdz.dir }}"
jobs: "{{ ansible_processor_nproc }}"
target: "{{ item }}"
loop:
- boost
- libote
2023-05-14 20:07:22 +00:00
- semi2k-party.x