2023-04-17 11:56:18 +00:00
|
|
|
# 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
|
2023-04-17 11:56:18 +00:00
|
|
|
- automake
|
|
|
|
- build-essential
|
|
|
|
- clang
|
|
|
|
- cmake
|
|
|
|
- git
|
2023-05-14 20:07:22 +00:00
|
|
|
- libgmp-dev
|
2023-04-17 11:56:18 +00:00
|
|
|
- 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 }}"
|
2023-04-17 11:56:18 +00:00
|
|
|
clone: true
|
2023-04-19 16:46:24 +00:00
|
|
|
update: false
|
2023-04-17 11:56:18 +00:00
|
|
|
recursive: true
|
2023-04-19 16:46:24 +00:00
|
|
|
single_branch: true
|
2023-04-17 11:56:18 +00:00
|
|
|
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
|
2023-04-17 11:56:18 +00:00
|
|
|
|
|
|
|
- name: Build MP-SPDZ
|
|
|
|
community.general.make:
|
2023-05-14 20:07:22 +00:00
|
|
|
chdir: "{{ mp_spdz.dir }}"
|
2023-04-17 11:56:18 +00:00
|
|
|
jobs: "{{ ansible_processor_nproc }}"
|
|
|
|
target: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- boost
|
|
|
|
- libote
|
2023-05-14 20:07:22 +00:00
|
|
|
- semi2k-party.x
|