Skip to content

Commit

Permalink
ci: picco, scalemamba, spdz
Browse files Browse the repository at this point in the history
  • Loading branch information
gutjuri committed Jan 29, 2024
1 parent 9643e60 commit 7795065
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test-picco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and test the Docker container for Picco

on:
push:
branches: [ master ]
paths:
- picco/*
pull_request:
branches: [ master ]
paths:
- picco/*

jobs:
build:
name: Build container for Picco
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: picco
tags: picco
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
28 changes: 28 additions & 0 deletions .github/workflows/test-scalemamba.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and test the Docker container for SCALE-Mamba

on:
push:
branches: [ master ]
paths:
- scalemamba/*
pull_request:
branches: [ master ]
paths:
- scalemamba/*

jobs:
build:
name: Build container for SCALE-Mamba
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: scalemamba
tags: scalemamba
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
28 changes: 28 additions & 0 deletions .github/workflows/test-spdz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and test the Docker container for SPDZ-2

on:
push:
branches: [ master ]
paths:
- spdz/*
pull_request:
branches: [ master ]
paths:
- spdz/*

jobs:
build:
name: Build container for SPDZ-2
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v4
with:
context: spdz
tags: spdz
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
2 changes: 1 addition & 1 deletion picco/install_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ for DIR in mult3 innerprod xtabs; do
ln -s /root/keys secure_server/keys
ln -s /root/picco/compute/smc-compute smc-compute
picco $DIR.c smc_config $DIR utility_config
make
make -j
done
4 changes: 3 additions & 1 deletion scalemamba/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -ex


Expand All @@ -7,7 +9,7 @@ git clone https://github.com/KULeuven-COSIC/SCALE-MAMBA.git
cd SCALE-MAMBA
git checkout -b v1.14 c111516e3ebc1efd12a2bd47dd2122b160e13d1e
cp /root/source/CONFIG.mine .
make progs
make progs -j

# set up certificate authority
touch ~/.rnd # see: https://github.com/openssl/openssl/issues/7754
Expand Down
6 changes: 2 additions & 4 deletions spdz/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ set -ex
git clone https://github.com/bristolcrypto/SPDZ-2
cd SPDZ-2
git checkout v0.0.3
echo USE_NTL = 1 >> CONFIG.mine
echo MOD = -DMAX_MOD_SZ=6 >> CONFIG.mine
echo ARCH = -march=native >> CONFIG.mine
{ echo USE_NTL = 1; echo MOD = -DMAX_MOD_SZ=6; echo ARCH = -march=native; } >> CONFIG.mine
sed -i s/-Werror//g CONFIG # needed because recent versions of gcc cannot compile SPDZ w/o warnings.
sed -i s/python/python2/g compile.py # The command is now called "python2" instead of "python".

make -j8
make -j
mkdir Player-Data


Expand Down

0 comments on commit 7795065

Please sign in to comment.