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 - sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFWZGLov8wPBNxuvnaPK+8vv6wK5hHUVEFzXKsN9QeuBAAAADHNzaDpzYW1zYXB0aQ== ssh:samsapti
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPd/4fQV7CL8/KVwbo/phiV5UdXFBIDlkZ+ps8C7FeRf cardno:14 336 332 - 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 - clang
- cmake - cmake
- git - git
- libgmp-dev
- libntl-dev - libntl-dev
- libsodium-dev - libsodium-dev
- libssl-dev - libssl-dev
@ -25,8 +26,8 @@
- name: Clone MP-SPDZ - name: Clone MP-SPDZ
ansible.builtin.git: ansible.builtin.git:
repo: https://github.com/data61/MP-SPDZ repo: https://github.com/data61/MP-SPDZ
dest: "{{ mp_spdz_dir }}" dest: "{{ mp_spdz.dir }}"
version: v0.3.5 version: "{{ mp_spdz.version }}"
clone: true clone: true
update: false update: false
recursive: true recursive: true
@ -35,7 +36,7 @@
- name: Create CONFIG.mine - name: Create CONFIG.mine
ansible.builtin.copy: ansible.builtin.copy:
dest: "{{ mp_spdz_dir }}/CONFIG.mine" dest: "{{ mp_spdz.dir }}/CONFIG.mine"
owner: "{{ username }}" owner: "{{ username }}"
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
content: | content: |
@ -43,11 +44,10 @@
- name: Build MP-SPDZ - name: Build MP-SPDZ
community.general.make: community.general.make:
chdir: "{{ mp_spdz_dir }}" chdir: "{{ mp_spdz.dir }}"
jobs: "{{ ansible_processor_nproc }}" jobs: "{{ ansible_processor_nproc }}"
target: "{{ item }}" target: "{{ item }}"
loop: loop:
- boost - boost
- libote - libote
- mpir - semi2k-party.x
- semi-party.x