1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-12-01 17:17:54 +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
- 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
dest: "{{ mp_spdz_dir }}"
version: v0.3.5
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:
dest: "{{ mp_spdz_dir }}/CONFIG.mine"
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:
chdir: "{{ mp_spdz_dir }}"
jobs: "{{ ansible_processor_nproc }}"
target: "{{ item }}"
loop:
- boost
- libote
- mpir
2023-04-18 22:56:27 +00:00
- semi-party.x