1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-12-18 00:37:52 +00:00

Upgrade MP-SPDZ in Ansible too

This commit is contained in:
Sam A. 2023-05-14 22:07:22 +02:00
parent 82757b8172
commit b974cb5790
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 9 additions and 7 deletions

View file

@ -5,4 +5,6 @@ ssh_keys:
- sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332
mp_spdz_dir: /home/{{ username }}/MP-SPDZ
mp_spdz:
dir: /home/{{ username }}/MP-SPDZ
version: v0.3.6

View file

@ -13,6 +13,7 @@
- clang
- cmake
- git
- libgmp-dev
- libntl-dev
- libsodium-dev
- libssl-dev
@ -25,8 +26,8 @@
- name: Clone MP-SPDZ
ansible.builtin.git:
repo: https://github.com/data61/MP-SPDZ
dest: "{{ mp_spdz_dir }}"
version: v0.3.5
dest: "{{ mp_spdz.dir }}"
version: "{{ mp_spdz.version }}"
clone: true
update: false
recursive: true
@ -35,7 +36,7 @@
- name: Create CONFIG.mine
ansible.builtin.copy:
dest: "{{ mp_spdz_dir }}/CONFIG.mine"
dest: "{{ mp_spdz.dir }}/CONFIG.mine"
owner: "{{ username }}"
mode: u=rw,g=r,o=r
content: |
@ -43,11 +44,10 @@
- name: Build MP-SPDZ
community.general.make:
chdir: "{{ mp_spdz_dir }}"
chdir: "{{ mp_spdz.dir }}"
jobs: "{{ ansible_processor_nproc }}"
target: "{{ item }}"
loop:
- boost
- libote
- mpir
- semi-party.x
- semi2k-party.x